mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
308 stars 56 forks source link

Add some migrations tips to the docs #69

Open mgaitan opened 9 years ago

mgaitan commented 9 years ago

for example, few ideas on how to migrate from github's wiki, moinmoin or mediawiki

mgaitan commented 9 years ago

docuwiki https://github.com/hoxu/dokuwiki2git

loispostula commented 9 years ago

Can you please elaborate a little bit more on how to migrate dokuwiki, given that I have my gitdir as generated by dokuwiki2git

mgaitan commented 9 years ago

Hello @loispostula . I only have experience migrating from MoinMoin. I wrote the tool equivalent to docuwiki2git for this scenario https://github.com/mgaitan/moin2git . This tool also help converting the syntax to restructuredtext and making the right structure to import attachments

then I move the result (the generated git repository) to the WALIKI_DATA_DIR, and sync waliki

python manage.py sync_waliki

Lastly, I run another wallki command that apply few filters and trasformation to cleanup the moin -> rst conversion.

python manage.py moin_migration_cleanup

here the code https://github.com/mgaitan/waliki/blob/master/waliki/management/commands/moin_migration_cleanup.py

So, in your case, you should run dokuwiki2git and find a way to convert the dokuwiki syntax to a valid format under waliki (for example, using this tool https://github.com/ludoza/DokuWiki-to-Markdown-Converter)

then you could run sync_waliki

Let me know if it help and I would be great if you can write and share something (a blog post, maybe) about your experiments.

cheer

mgaitan commented 9 years ago

here another tool

https://github.com/dmerand/dlm-dot-bin/blob/master/doku2md

the approach here is use doku2html to convert dokuwiki syntaxt to html, and then pandoc to convert it to markdown

loispostula commented 9 years ago

hey, thank you very much for all the info, I did write a blog post explaining how I get it working:

http://loispostula.me/blog/2015/06/09/migrate-from-dokuwiki-to-waliki/