techtonik / rainforce

Automatically exported from code.google.com/p/rainforce
0 stars 0 forks source link

convert Google markup to markdown to preserve history #34

Open techtonik opened 8 years ago

techtonik commented 8 years ago

Export from Google code killed the history while converting wiki to markdown. So, need to convert it manually:

techtonik commented 8 years ago

Pandoc does not support it yet - https://github.com/jgm/pandoc/issues/2897

Official Google Code converter - https://github.com/google/support-tools

techtonik commented 8 years ago
git clone https://github.com/google/support-tools

if https://github.com/google/support-tools/pull/185 is not merged, download batch convertions script from https://github.com/techtonik/support-tools/blob/patch-1/wiki_to_md/wiki2gfm-batch.py

python ./support-tools/wiki2gfm-batch.py <dir>
techtonik commented 8 years ago

Original converter strips page #summary, so until https://github.com/google/support-tools/pull/186 is merged, clone scripts from techtonik/support-tools and use --summary_italic flag for conversion:

git clone https://github.com/techtonik/support-tools
cd support tools
wget https://github.com/techtonik/support-tools/blob/patch-1/wiki_to_md/wiki2gfm-batch.py
python wiki2gfm-batch.py --summary_italic <dir>