Open marsipu opened 3 years ago
do you know a project that does this? so we can copy the way they do it...
do you know a project that does this? so we can copy the way they do it... …
I checked all the projects using the pydata-sphinx-theme (from the list in README). Unfortunately I found none which documented its classes that way. So it is probably something which had to be implemented on the side of pydata-sphinx-theme?
yes it would then require an improvement in pydata-sphinx-theme you can open an issue on their repo to get feedback maybe
This may not be very easy I suspect. The page elements that end up shown under "on this page" are h2
, h3
etc. The class methods are dt
elements. This is the function that determines the in-page TOC:
However, if you could fix this, it would also mean that the glossary page entries would end up in the "on this page" menu (which would be good, and which I've asked them about before).
Thank you for the hint, I'll try to learn a bit more about it and then maybe ask the developers again (this will probably take me some time).
Describe the new feature or enhancement
For the documentation of classes in the API on the Website it may be easier to navigate if their methods were outlined in the right sidebar ("On this page").
Implementation
I am not sure how to implement this. Maybe some change of the configuration of sphinx.autodoc? Or would it need changes on how the pydata-sphinx-theme handles the API?