This will convert a wiki from MediaWiki to Gollum and Markdown (or any other format supported by Pandoc).
-
Install dependencies:
brew install pandoc icu4c gem install --no-ri --no-rdoc hpricot gollum gollum-lib pandoc-ruby
-
Perform a Special:Export
-
Edit the constants at the top of the
.rb
for your particular needs. -
ruby mw-to-gollum.rb
All inner links between pages with diacritics and spaces will be broken. You can list all links to be reviewed by searching for the string wikilink
in all pages.
awesome thanks for adding the revision support