How can I list functions, classes, etc... to show up in the table of contents in Sphinx?
Or, more generally, how can I add arbitrary entries within a page (not subtitles) to the table of contents?
BTW: I'm not documenting Python code, so I can't use the autodoc tools.
Edit
I tried the directive .. contents:: name
, but that seems to be for placing a ToC, not defining an entry.
Edit: Partial Solution
I copied the basic/localtoc.html
template to my _templates
directory.
{{ pagename }}
gives the path to the current file and {% include filename %}
lets me include a file, so I could presumably combine those, and just generate my own Table of Contents for every file whenever conf.py
is run. I will try this, but is there a more automatic solution?