Note that while this will convert a wiki from MediaWiki to Gollum, and links will be preserved, content formatting for the most part will be broken until you set the proper content type for Gollum.
-
Install dependancies:
gem install hpricot gem install gollum gem install gollum-lib gem install wikicloth
-
Perform a Special:Export
-
Place the XML in a Gollum repo directory, along with the .rb
-
Edit the .rb for your particular needs (.xml path, commit credentials)
-
Run the .rb
ruby mw-to-gollum.rb
For anyone else getting encoding errors: gollum/gollum#843