I have a module mod
with some submodule submod
and use .. automodule:: mod.submod
to generate documentation for it.
The signatures of the elements (functions, classes etc.) in the modules now look like mod.submod.my_function(*args, **kwargs)
.
I would instead like Sphinx to just show the name of the function, i.e. the signature my_function(*args, **kwargs)
.
Do I have any way to drop the leading module and submodules in the signature?