I am starting to document several python classes using ext.autodoc. I have some * .rst files with content like
======== mymodule ======== .. automodule:: mymodule .. autoclass:: myclassA :members: .. autoclass:: myclassB :members:
plus index.rst:
.. toctree:: :maxdepth: 2 mymodule
'mymodule' is shown in the table of contents, but I would also like to see classes in TOC:
How can I get sphinx to create something like a section for each class? Or is there a good reason not to?
thanks
python-sphinx
Stefan
source share