Skip to content Skip to sidebar Skip to footer

Can I Remove The "src" Package From Python Doc Generated With Sphinx?

I have a python project and a structure like this project |-- doc |-- src |-- mod_1.py | |-- Class1 |-- package1 |-- mod_2.py |-- Class2 I us

Solution 1:

After raising an issue at GitHub sphinx #3113, shimizukawa came up with a solution:

  • Remove __init__.py from src folder
  • Set pythonpath to /../src instead of /../ in the conf.py

Post a Comment for "Can I Remove The "src" Package From Python Doc Generated With Sphinx?"