Sphinx: force rebuild of html, including autodoc

Phillip B Oldham picture Phillip B Oldham · Jan 9, 2014 · Viewed 7.8k times · Source

Currently, whenever I run sphinx-build, only when there are changes to the source files are the inline docstrings picked up and used. I've tried calling sphinx-build with the -a switch but this seems to have no effect.

How can I force a full rebuild of the HTML output and force autodoc execution?

Answer

J. Katzwinkel picture J. Katzwinkel · Jan 9, 2014

It seems to work if the -E option is used along with -a. I added it to the html target in my Makefile and now changes in docstrings are picked up without updating any .rst files.