问题
I am using the automodule
directive to document some Python module using Sphinx:
.. automodule:: mymodule.mysubmodule
:members:
This works very well.
However, I would like to include a sort of "table of content" of all the members to be documented this way. For example if mysubmodule
contains classes A
, B
and C
I would these displayed as a list above the details (with links).
来源:https://stackoverflow.com/questions/53371146/automatic-python-module-documentation-with-sphinx-add-a-table-of-content