PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

#! | 20 lines | 11 code | 9 blank | 0 comment | 0 complexity | 7a32eca2225e3788e4376da6245654c8 MD5 | raw file
 1As described in:
 4I’ve created a little script that allows me to convert documents in the google code wiki format to HTML.
 6The script lives in my google code repository. Check it out from subversion:
 8svn co
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, I’d use the following command:
12wiki_convertor.rb ~/Code/third-party/google-doctype/wiki/ ~/Sites/google-doctype/
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 I’d 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?
16The code is covered by quite a few tests but, if peeps find problems converting their own wiki content (for example) then I’d love to hear from you.
18Note There’s a chance that this becomes less important if/when Google use gears in their google docreader app to allow offline access.
20Note If you don’t want to go through this process then you can use a standalone version of moinmoin to view your wiki content offline.