2
votes

I am trying to use Sphinx to create simple documentation for a python module. The first time I ran it, it worked fine. Now I have made some updates to the module, and rerunning the documentation commands:

$ sphinx-apidoc -P -F -f -e -o . /path/to/module $ make html it always uses the old version of the python module code. I have tried deleting the entire docs directory, moving the module, rechecking it out, updating sphinx - nothing works.

The old code is still being reused and cached somewhere. It is driving me absolutely insane.

1

1 Answers

0
votes

Because Sphinx imports the module, it does not seem to find the local copy, but rather imports the older version already installed on my system, and uses that to generate the docs. Running python setup.py install, and then regenerating everything finally worked.