]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/convert_MoinMoin_to_ikiwiki.mdwn
ead95678c999bf9d55b131fb571c337220c1e568
[ikiwiki.git] / doc / tips / convert_MoinMoin_to_ikiwiki.mdwn
1 This MoinMoin converter converts wikis to ikiwikis backed by a git repository, including full history. It simply parses the wiki pages into markdown using the MoinMoin engine.
2
3 The converter was originally written by [[JoshTriplett]] and included support for Tikiwiki, for which it parses the wiki pages to HTML then back into markdown using the `libhtml-wikiconverter` Perl package. That original version from Josh is still available from [his wiki page](/users/JoshTriplett). 
4
5 The MoinMoin side of things was completely re-written by [[anarcat]] and is currently still in development. That version is available at:
6
7     git clone git://src.anarcat.ath.cx/moin2iki
8
9 It doesn't feature support to migrate from Tikiwiki anymore and focuses on MoinMoin support.
10
11 The software is made of two pieces:
12
13  * the importer (`moin2git`) - which converts the wiki pages into a git repository with full history
14  * the converter (`moin2mdwn`) - which converts a set of moin-formatted text files into markdown + ikiwiki directives
15
16 ## MoinMoin importer features
17
18  * supports latest MoinMoin versions (tested with 1.9.x)
19  * uses `git fast-import` to improve performance (10 minutes and 200M of ram for a 7 years old 2GB Moinmoin wiki)
20  * multistep process allows bulk edit through git before markdown conversion, or staying with a 
21  * imports attachments as subpages
22  * uses the per-page edit log
23  * consistent: multiple runs will generate the same repository
24  * re-entrant: can be run multiple times to import new changes
25
26 ## MoinMoin converter features
27
28  * lots of macros are not translated
29  * a bunch of markup and exotic uses of parsers will probably fail? 
30
31 ## MoinMoin features missing from ikiwiki
32
33 The importer is pretty much complete, but the converter can only go so far as what features ikiwiki supports. Here are the MoinMoin features that are known to be missing from ikiwiki. Note that some of those features are available in MoinMoin only through third-party extensions.
34
35  * [[todo/do_not_make_links_backwards/]] - MoinMoin and Creole use `\[[link|text]]`, while ikiwiki uses `\[[text|link]]` - for now the converter generates [[markdown]] links so this is not so much an issue, but will freak out users
36  * [[todo/internal_definition_list_support/]] - includes tabling the results ([MoinMoin's DictColumns macro](http://moinmo.in/MacroMarket/DictColumns))
37  * [[todo/per page ACLs]] - ([MoinMoin's ACLs](http://moinmo.in/HelpOnAccessControlLists))
38  * more to be documented here
39
40 Comments and feedback always welcome! --[[anarcat]]