Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hyperlink a method from a Python module in Sphinx?

While writing documentation using Sphinx, I know that I can link to a class by using Intersphinx:

:py:class:`logging.Logger`

But how do I link directly to a specific method, like logging.Logger.warning()?

like image 988
sorin Avatar asked Aug 05 '11 13:08

sorin


1 Answers

Just use

:py:meth:`module.class.mymethodname`
like image 164
Daniel Roseman Avatar answered Nov 09 '22 17:11

Daniel Roseman