Hi,

about the global 'toc' variable

( http://sphinx.pocoo.org/templating.html#toc ):


How would one modify what lives inside that variable,
or how can I modify how the contents are shown?
Can one templatify it via some Jinja magic?

There are several modifications I have in mind,
but let's start with e.g. that I rather wouldn't
have the main title of the page to show up again,
because it's already printed right in the h1 header.

I know that I could do some CSS trick if it were
only that, but I'd be interested in a general look
under the hood. From some simple reverse-engineering
(calling toc[1:], etc. in an inherited localtoc.html),
it seems that it simply is a raw HTML string.

So, can I mess with toc without modifying the
Sphinx python sources?

Even more advanced, what are the chances of getting
alternate local-TOC names for sections, like it
is supported for the global TOC (side-note: I think
that's not supported for the root document, right?).

Cheers, Paul

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

Reply via email to