Thank You Takayuki,

it works: I put it into $SPHINX/ext and added as sphinx.ext.localtoc.

However for my current project I'm already using localtoc.html with just {{
toc }} and custom post-processing afterwards (I've patched sphinx to be
explicit about what html pages are new, changed or deleted — so not to
patch all pages all the time). It works fine and I'm struggling with css
features I wanted.

Thank You again, for Your effort.
 _____
*Boris*


On Tue, Jan 7, 2014 at 7:14 PM, Takayuki Shimizukawa
<[email protected]>wrote:

> Hi Boris,
>
> If you want to pass some variables/functions to jinja2 template,
> ``html_context`` conf.py setting will help you.
> However, the ``localtoc`` class is a directive that only works with reST
> source.
>
> So, I made a little extension to render headings in the page exclude a
> page title.
> https://gist.github.com/shimizukawa/8300704
> Please try it.
>
> Regards,
> --
> Takayuki SHIMIZUKAWA
> http://about.me/shimizukawa
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sphinx-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sphinx-users/d0dwJ4YiMhs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to