During using sphinx to generate autodoc for out project, it comes out a problem that it will generate the doc for python instead of my own defined module when they have the same names.
For details, i have a module named "array.py" and when i am using "sphinx-apidoc -o XXX ../src/", the generated array.rst is as follows:
array module
============
.. automodule:: array
:members:
:undoc-members:
:show-inheritance:
And when i using the command " make html " to generate the html files for all the modules, the contents of array.html is not based on my own module, but the module in python3.6.
I have tried some solutions like remove the python package in sys.path defined in config.py which throws another error as sphinx depends on some modules in python. The only solution that worked is to change the module name.
I want to know that is there any different solution to this problem? like adding some constrains in some config files, instead of changing my modules' name.