How would I cross-reference a function generated by autodoc in Sphinx?

You don’t need to add labels. In order to refer to a Python class, method, or other documented object, use the markup provided by the Python domain. For example, the following defines a cross-reference to the mymethod method: :py:meth:`mymodule.MyClass.mymethod` Or even simpler (since the Python domain is the default): :meth:`mymodule.MyClass.mymethod` The documentation of TextWrapper.wrap that … Read more

Sphinx cannot find my python files. Says ‘no module named …’

This is the usual “canonical approach” to “getting started” applied to the case when your source code resides in a src directory like Project/src instead of simply being inside the Project base directory. Follows these steps: Create a docs directory in your Project directory (it’s from this docs directory the commands in the following steps … Read more

Sphinx’s autodoc’s automodule having apparently no effect

I’ll try answering by putting the “canonical” approach side-by-side with your case. The usual “getting started approach” follows these steps: create a doc directory in your project directory (it’s from this directory the commands in the following steps are executed). sphinx-quickstart (choosing separate source from build). sphinx-apidoc -o ./source .. make html This would yield … Read more