The usual use of toctree
in Sphinx looks something like this:
.. toctree::
:maxdepth: 2
foo
bar
baz
and if, for example, foo.rst
starts with a title heading "Being Foo", bar.rst
starts with "Doing Bar", and baz.rst
starts with "Thinking Baz" then you will get a nice table of contents that looks like this:
with links from each to the appropriate page.
My question: is there a way to annotate a toctree? For example, if I wanted to annotate the "Being Foo" heading with something like "W. Robert Foo created the first metasyntactic variable in 1857 and we've been using it ever since.", then I could put that text somewhere (hopefully at the top of foo.rst
, but if not, then in the toctree directive) and the toctree output would look like this:
- Being Foo — W. Robert Foo created the first metasyntactic variable in 1857 and we've been using it ever since.
- Doing Bar
- Thinking Baz