Hi, I'm using a
custom domain for the Dylan programming language and I would like to include all the functions, constants, etc defined with directives in the table of contents at the correct level. Is it possible to have the domain directives themselves add entries to the toctree?
From what I know so far, I'm thinking that I should be able to introspect the generated object graph to figure out the current ToC depth and (somehow) insert nodes at the next level. To be a little more concrete, if my document looks like this:
My Library
**********
My Module 1
===========
.. function:: foo
foo is ferocious
My Module 2
===========
.. constant:: bar
bar is best
I would like to see this table of contents in the right sidebar (I'm using the
Furo theme, if it's important):
My Module 1
foo
My Module 2
bar
I'm hoping that someone can tell me whether I'm heading in the right direction by trying to do this with the Dylan domain code, or if I need to look at some other way to accomplish it, so that I don't spend too much time going down the wrong path.
Thanks.