Sphinx: force rebuild of html, including autodoc Sphinx: force rebuild of html, including autodoc python python

Sphinx: force rebuild of html, including autodoc


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.


I do not use sphinx-build but with make html I always do touch *.rst on my source files. Then make html can pickup changes.


I use the clean sub-command of make to force a rebuild of the documentation (as @Henrik stated in his comment).

You can issue it as a separate command:

make cleanmake html

Or the commands can be combined:

make clean html