0

With docstrings and automodule in sphinx I can display documentation of a parent class and children methods like that:

enter image description here

enter image description here

where Compute is a method of the above class.

I saw here: Attribute docstring from parent class isn't shown in inner class using Sphinx a way to change the display with the "horizontal class/method tree", that is to say with the inheritance order.

But I only get what you could see below, that is to say, without docstring's information and without children methods (and their docstrings)...

enter image description here

Here is the .rst code I used:

.. automodule:: etc.pypart.PpartCGNSU 
    :members:
    :exclude-members: PpartCGNSU
    :noindex:

    .. autoclass:: etc.pypart.PpartCGNSU
        :members:
        :exclude-members: initpartial

        .. autofunction:: etc.pypart.PpartCGNSU.initpartial
            :noindex:

For instance, I could not see the initpartial method and its docstring.

Someone could help me? Thank you in advance.

Jejouze
  • 23
  • 6
  • I don't really understand the question, but if `initpartial` is a method, why don't you use `automethod`? – mzjn Jan 25 '23 at 12:28

0 Answers0