autodoc - How to stop Sphinx automethod prefixing method name with class name -


when use sphinx automethod document specific method so:

.. automethod:: my_module.myclass.my_method 

the resulting docs append class name method name this:

myclass.my_method(kwarg1=none, kwarg2=none)      docstring my_method... 

is there way tell automethod not prefix method name class name, such resulting docs this:

my_method(kwarg1=none, kwarg2=none)      docstring my_method... 

?

add line in conf.py file

add_module_names = false


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -