/doc/tools/google-wiki-syntax
#! | 20 lines | 11 code | 9 blank | 0 comment | 0 complexity | 7a32eca2225e3788e4376da6245654c8 MD5 | raw file
1As described in: 2http://chrisroos.co.uk/blog/2008-07-30-converting-google-code-wiki-content-to-html 3 4Ive created a little script that allows me to convert documents in the google code wiki format to HTML. 5 6The script lives in my google code repository. Check it out from subversion: 7 8svn co http://chrisroos.googlecode.com/svn/trunk/google-wiki-syntax 9 10The wiki_convertor script takes two arguments. The first is the wiki file, or directory containing multiple wiki files, and the second is the output directory. So, to use it to create an html copy of the google-doctype wiki content, in my home Sites directory, Id use the following command: 11 12wiki_convertor.rb ~/Code/third-party/google-doctype/wiki/ ~/Sites/google-doctype/ 13 14This is the first step towards being able to, hopefully, create a pdf copy of the google-doctype content. Actually, if anyone has any thoughts on this Id love to hear them: should I output a different format (docbook, for example) or is it easy enough to convert from (x)html to pdf? 15 16The code is covered by quite a few tests but, if peeps find problems converting their own wiki content (for example) then Id love to hear from you. 17 18Note Theres a chance that this becomes less important if/when Google use gears in their google docreader app to allow offline access. 19 20Note If you dont want to go through this process then you can use a standalone version of moinmoin to view your wiki content offline.