it's any way to remove the package and or module name from sphinx doc?
Example: if exist a function called waa inside the module foo.bar, the rst code
.. automodule:: foo.bar :members:
will generate
foo.bar.waa()
and i want to output
waa()
You can change add_module_names
to False
in the file conf.py
:
# If true, the current module name will be prepended to all description # unit titles (such as .. function::). add_module_names = False
Then foo.bar.my_function()
will display as my_function()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With