getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.58k stars 1.81k forks source link

Import Dotclear needs improvements #2532

Closed anto1ne closed 5 years ago

anto1ne commented 5 years ago

Hi,

I tried to import my dotclear website using pelican-import. I see that most of the article are not correctly imported.

Please find enclosed an example file

Step to reproduce

antoine@Talos:~/Bureau/export_dotclear$ ~/.local/bin/pelican --version
4.0.1
antoine@Talos:~/Bureau/export_dotclear$ ~/.local/bin/pelican-import   --dotclear -o output 2019-02-14-toitoinebzh-backup.txt  -m markdown
WARNING: Feeds generated without SITEURL set properly may not be valid
WARNING: No timezone information specified in the settings. Assuming your timezone is UTC for feed generation. Check http://docs.getpelican.com/en/latest/settings.html#timezone for more information
33 posts read.
output/wolfenstein-enemy-territory-sous-ubuntu-904.md
output/dell-latitude-e4310-et-asus-eeebox-eb1012.md
output/mise-en-place-dune-seedbox-automatisee.md
output/futjitsu-esprimo-p3520-e85.md
...
antoine@Talos:~/Bureau/export_dotclear$ 

Look at .md files with a file editor like Retext :

Une fois l'installation terminée, il est nécessaire de s'assurer de la mise en place de l'accès ssh en installant le paquet openssh-server sur le serveur



[export_dotclear.zip](https://github.com/getpelican/pelican/files/2867083/export_dotclear.zip)
oulenz commented 5 years ago

The Dotclear import code essentially hasn't changed since it was first added eight years ago. There may have been changes to the format in the meantime (e.g. how tags are encoded), and the original code probably didn't cover everything to begin with (e.g. code blocks).

I have no experience with Dotclear, not sure about other active contributors. Would you be able to improve the code yourself?

anto1ne commented 5 years ago

Thank you for your feedback I finally corrected the *.md files manually.

when I have time, I may try to improve the code (function dc2fields, I guess)

justinmayer commented 5 years ago

@toitoinebzh: Any contributions you can offer would of course be welcome. Thanks!