Migration Notes - StanfordVLSI/Genesis2 GitHub Wiki

Notes on migrating the wiki from genesis2.stanford.edu to github.

See kiwi:genesis2_wiki_migration/migrate.py

* For some reason you have to edit the first line of the wiki dump or
  else ElementTree.parse fails silently(!)

    BEFORE: <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/"...
    AFTER:  <mediawiki>

* Use <title> field to change spaces in filename to dashes e.g.
    "Main Page" => "Main-Page.mediawiki"

* Undo html-ification of font directives
  "&lt;" => "<" and "&gt;" => ">"

* Replace all "File:" refs w/ "files/" refs e.g.
    BEFORE: Download [File:Vim.tar.bz2 Vim.tar.bz2]
    AFTER:  Download [https://github.com/StanfordVLSI/Genesis2/wiki/files/Vim.tar.bz2 Vim.tar.bz2]


EXPORTING THE OLD WIKI

Want to take this wiki
    http://171.64.100.57/mediawiki/index.php/Main_Page

...and move it to here:
    https://github.com/StanfordVLSI/Genesis2/wiki

Dump the old wiki:

    % ssh genesis2
    % cd /var/www/html/mediawiki/maintenance
    % php5 ./dumpBackup.php --current > /path/wiki_dump.xml
    % sudo php ./dumpBackup.php --current > /tmp/wiki_dump.xml

For some reason you have to edit the first line of the wiki dump or else ElementTree.parse fails silently(!)

    BEFORE: <pre><mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/"...
    AFTER:  <pre><mediawiki>
⚠️ **GitHub.com Fallback** ⚠️