I inherited a rather large codebase that I want to create HTML documentation for. Since it is written in Python I decided to use Sphinx because the users of the code are accustomed to the design and functionality of the Python documentation that's created with Sphinx.
I used the command sphinx-apidoc to automatically create the .rst files. I imported the module path into sys.path so that Sphinx can find the code.
So far so good. However, when I try to create the HTML using the command make html, there are many tracebacks popping up and some of the examples in the codebase seem to get executed. What can be the reason for that and how can I prevent that from happening?
__main__? Or doctests (you know, tests in a docstring) ? - Pierre GMsphinx-apidoc -f -F -o . ../srcfollows bymake html. Would that initiate the execution of doctests? If so, how can I prevent it from doing that? - AME__main__; (2) if you're not using thedoctestextension, you should befine. Check your configuration file to make sure. - Pierre GMsphinx-apidocwill use the sphinx.ext.autodoc extension. This extension evaluates definitions to obtain their__doc__attribute. So that can also be a cause of warnings. - Pedro Romano