简体   繁体   中英

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

只是用

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM