How to ignore 'src' directory in python project when making sphinx autodoc

Another alternative would be to include src in your path and specify the module without the src prefix.

So change your path setup to the src folder by replacing your line above with this in docs/conf.py:

sys.path.insert(0, os.path.abspath('../src'))

and in your sphinx index.rst change the automodule:: accordingly.

That way, you won't have that src. prefix to your class names.

Worked for me, anyway :-)