Hi,
The autodoc extension scans the target module and generates
documentation. No way to imitate it. As a workaround, you can insert
your content manually:
.. autoclass:: yourmodule.MyClass
.. py:method:: __call__
Prints the input.
This text is added to the document.
Note: You should not use `:member:` option to the `autoclass` or
`automodule` directives.
Then they'll create a document for MyClass.forward() automatically.
Thanks,
Takeshi KOMIYA
2020年6月4日(木) 17:02 'CaptFugu' via sphinx-users <
sphinx...@googlegroups.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sphinx-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/9df0564f-f823-499c-a7e5-6d0efee594e9%40googlegroups.com.