I want to use, let's say, .. autoclass:: Foo
in my docstring, but as a result, I want to obtain only Foo
s docstring, not the name + signature + docstring. I tried to use .. autodata::
etc., but the result didn't change - it always results with at least class name.
class Foo:
"""
foo docs
"""
...
class Bar:
"""
bar bar bar
.. autodata:: Foo
:annotation:
restaurant restaurant
"""
...
results in:
bar bar bar
Foo(signature)
foo docs
restaurant restaurant
but I need:
bar bar bar
foo docs
restaurant restaurant
How can obtain desired, described above output? Can I use another docstring in the Sphinx?