Cheers - just .. Contents:: works for me.  

-----Original Message-----
From: sphinx-dev@googlegroups.com [mailto:sphinx-...@googlegroups.com]
On Behalf Of TP
Sent: 28 September 2010 12:26
To: sphinx-dev@googlegroups.com
Subject: Re: [sphinx-dev] accessing global variables like 'toc'

On Mon, Sep 27, 2010 at 4:14 AM, Alastair Dent
<alastair.d...@imgtec.com> wrote:
> In some html files I'd like to place a local toc. The variable 'toc' 
> would seem to do the trick, but how do I insert it?
> Should I define a block in the layout.html?
>
> --
> You received this message because you are subscribed to the Google 
> Groups "sphinx-dev" group.
> To post to this group, send email to sphinx-...@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.
>

I just do:

.. contents::
   :local:

for more info see
http://sphinx.pocoo.org/rest.html?highlight=contents#directives and
http://docutils.sourceforge.net/docs/ref/rst/directives.html#table-of-co
ntents

--
You received this message because you are subscribed to the Google
Groups "sphinx-dev" group.
To post to this group, send email to sphinx-...@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.


-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@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