I am building code documentation with Sphinx.
Let's say at some point there is documentation for a class foobar.Foo
, i.e. something like
.. autoclass:: foobar.Foo
:members:
At some other place, I have a code example (included using literalinclude
), which contains the line
foo = foobar.Foo()
Is there a way to make the foobar.Foo
in the code example automatically link to the documentation of that class like when using
:class:`foobar.Foo`
in normal text?