On Wednesday, 3 April 2019 07:47:53 UTC+2, Phillip Feldman wrote:
>
> I would like to make Sphinx automatically generate an entry in the table 
> of contents for each function, class, and method.  Is there a way to do 
> this?
>

I'm interested in this too. While playing around with the code in one of my 
Sphinx extensions, I was trying to add entries to the toctree, but it 
failed to persist - as if I only get to see a deepcopy for which edits are 
discarded. I ended up creating title nodes while rendering the custom 
directives.

It might be possible with a transformer too, which is more generic. 
Whenever it encounters an ObjectDescription it could add a title. Not sure 
if that happens early enough for the toctree discovery, though.

-- 
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