Skip to content

DokuWiki to MkDocs Migration⚓︎


This worked for about 90% of my links. It didn’t cover complex links. I’m sure there are better ways of doing this, but I don’t intend to do this again, and it got me through the migration.

Edit the file in vim and use the following substitutions.

VimL
1
2
3
%s/\[\[/(/g
%s/|/)\[/g
%s/\]\]/\]/g

Next, register a macro and use it on each line to swap the link order.

f[df]F(Pf)

Run the macro a few times and you should be set.