Python Sphinx Autosummary: Automated listing of member functions

后端 未结 3 1047
忘了有多久
忘了有多久 2020-12-09 17:46

How can I tell the autosummary extension not to only list a single class but also all the class\' members?

If I use:

.. autosummary::

    MyClass
         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-09 18:24

    Maybe you should use autoclass provided by sphinx, You can approach that by replacing autosummary:

    .. autoclass:: MyClass
       :members:
    

提交回复
热议问题