You are here: Home Members jhb old blog entries plonebook
Personal tools

plonebook

why do I always forget the most simple things - and never learned sed/awk?

Ok, so the german magazine IX has the the german version of the plone
book on a cd. Too bad that I don't have a copy of it...

But there is http://sourceforge.net/cvs/?group_id=82753. So, after
having downloaded it, how do I transform many rst files into many html
files?:

ls *.rst | xargs -i python -c 'import sys; print
sys.argv[1].split(".")[0]' {} | xargs -i rst2html {}.rst {}.html

Adding a:

IndexOptions +FancyIndexing +ScanHTMLTitles +DescriptionWidth=*
AddType text/html .html

in the directory helps making up for a missing index file.

Document Actions