Sphinx allows linking to external documentation (such as the standard library docs) via intersphinx.
Is it possible to link to the definition of special methods like __del__()
, without just making a regular link?
Sphinx allows linking to external documentation (such as the standard library docs) via intersphinx.
Is it possible to link to the definition of special methods like __del__()
, without just making a regular link?
Ok, so in my case, I just needed to link to the object.__del__
method:
:py:meth:`__del__() <object.__del__>`
To do this generically:
python -m sphinx.ext.intersphinx https://docs.python.org/3/objects.inv
to get the inventory of the python docs. You're gonna want to pipe the output through less or grep or save it to a fileobject.__spam__