Hi,

It seems there are no special template variable to show a toctree for a 
specific document.
The following code might help you::
def on_html_page_context(app, pagename, tempaltename, context, docname):
    # get ToC for "a" document
    toc_for_a = self.env.get_toc_for('a', self)

    # set up template variable "toc_for_a"
    context['toc_for_a'] = self.render_partial(toc_for_a)['fragment']

def setup(app):
    app.connect('html-page-context', on_html_page_context)

I don't test this locally, but it might work. But I don't know how 
customize the readthedocs theme.
Please refer templating section of sphinx docs.

Thanks,
Takeshi KOMIYA

2016年8月17日水曜日 8時16分52秒 UTC+9 Mark Peters:
>
> Hi,
>
> A snippet of our doc file structure looks like the following:
>
> index.rst
>
> .. toctree::
>     a
>
> a.rst
>
>
> .. toctree::
>
>     a.1
>
>     a.2
>
> Would it be possible to insert a toctree on pages a.1 and a.2 that 
> includes links to each other (siblings) and no other links? For example, in 
> our multi-page tutorials, I'd like to include a toctree on each page of the 
> tutorial that lists all of the other steps in the tutorial, so that readers 
> can move forward or backward multiple steps, if desired.
>
> I'm using the Sphinx ReadTheDocs theme.
>
> Thanks,
> Mark
>
>

-- 
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to