Re: [Rest2web-develop] How/where can I put some rst2html options?
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2007-04-27 17:11:23
|
Chris G wrote: > Using r2w.py is it possible to put some rst2html.py directives > anywhere to change some of the HTML generation? > > In particular I'd like to use the following option:- > > --initial-header-level=<level> > > You can set this per file in the restindex. See the 'initialheaderlevel' keyword: http://www.voidspace.org.uk/python/rest2web/restindex.html#the-keywords Unfortunately I *don't* think this is inherited if you set it in indexpages. You can set global docutils settings in the default config file in your dcoutils package. I have a feeling that if there is a docutils conf file in the current directory when you run rest2web, this will be picked up. If this doesn't work, report back and I will add a 'feature request' for being able to specify a docutils config file to use with a site. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml |