]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/convert_MoinMoin_to_ikiwiki.mdwn
link back to josh's twiki stuff
[ikiwiki.git] / doc / tips / convert_MoinMoin_to_ikiwiki.mdwn
1 A MoinMoin and TWiki converter, which was originally written by [[JoshTriplett]] converts those wikis to ikiwikis backed by a git repository, including full history. It uses two techniques for conversion:
2
3  * for MoinMoin, it parses the wiki pages into markdown using the MoinMoin engine
4  * for Tikiwiki, it parses the wiki pages to HTML then back into markdown using the `libhtml-wikiconverter` Perl package
5
6 The MoinMoin side of things was completely re-written by [[anarcat]] and is currently still in development. That version is available at:
7
8     git clone git://src.anarcat.ath.cx/moin2iki
9
10 The original version from Josh is still available from [his wiki page](/users/JoshTriplett). [[anarcat]] will probably remove support from Tikiwiki eventually, as those two projects are really different...
11
12 # MoinMoin scripts
13
14 The MoinMoin part is made of two main pieces:
15
16  * the importer (`moin2git`) - which converts the wiki pages into a git repository with full history
17  * the converter (`moin2mdwn`) - which converts a set of moin-formatted text files into markdown + ikiwiki directives
18
19 ## MoinMoin importer features
20
21  * supports latest MoinMoin versions (tested with 1.9.x)
22  * uses `git fast-import` to improve performance (10 minutes and 200M of ram for a 7 years old 2GB Moinmoin wiki)
23  * multistep process allows bulk edit through git before markdown conversion, or staying with a 
24  * imports attachments as subpages
25  * uses the per-page edit log
26  * consistent: multiple runs will generate the same repository
27  * re-entrant: can be run multiple times to import new changes
28
29 ## MoinMoin converter features
30
31
32  * lots of macros are not translated
33  * a bunch of markup and exotic uses of parsers will probably fail? 
34
35 ## MoinMoin features missing from ikiwiki
36
37 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.
38
39  * [[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
40  * [[todo/internal_definition_list_support/]] - includes tabling the results ([MoinMoin's DictColumns macro](http://moinmo.in/MacroMarket/DictColumns))
41  * [[todo/per page ACLs]] - ([MoinMoin's ACLs](http://moinmo.in/HelpOnAccessControlLists))
42  * more to be documented here
43
44 Comments and feedback always welcome! --[[anarcat]]