sorin
sorin

Reputation: 170410

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()?

Upvotes: 5

Views: 1693

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599580

Just use

:py:meth:`module.class.mymethodname`

Upvotes: 12

Related Questions