On Apr 11, 10:52 am, daspostloch <daspostl...@googlemail.com> wrote:
> On 04/10/2011 03:30 AM, Tim Martin wrote:
>
> > I can't see a way to generate the h1 and h2 headings from ReST but
> > insert the standard generated text into it (without having that text
> > repeated in every ReST file).
>
> not sure if you want or dont want it, but have you looked at
> rst_prolog in conf.py?

I hadn't seen that, thanks for the suggestion. It looks like it might
do what I want, but at the moment I'm stuck on v0.6.1, which doesn't
have it. Upgrading is not impossible, but it'll mean persuading the
sysadmins to accept unofficial packages.

> > The problem I hit here is that the largest heading type in ReST is
> > automatically mapped to<h1>, whatever I do. This means that 'Section
> > 1' always comes out as<h1>, but I need it to be<h2>  in order to fit
> > with the style. Is there some way to control the way that ReST
> > headings are mapped to HTML?
>
> would it still be bad if you just gave your layout-inserted h1
> a certain css class/id, and re-styled all other (sphinx) h1 to
> h2 in the css?

That's a possible workaround. I didn't want to go that route as I'll
then have to maintain two stylesheets. I was hoping to be able to
demonstrate that Sphinx would lower our maintenance overhead for
documentation, and complicating the stylesheet situation undermines
this, but it's not a deal-breaker.

Thanks,

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to