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?
sphinx-build generates documentation from the files in <sourcedir> and places it in the <outputdir> . sphinx-build looks for <sourcedir>/conf.py for the configuration settings. sphinx-quickstart(1) may be used to generate template files, including conf.py . sphinx-build can create documentation in different formats.
Sphinx is what is called a documentation generator. This means that it takes a bunch of source files in plain text, and generates a bunch of other awesome things, mainly HTML. For our use case you can think of it as a program that takes in plain text files in reStructuredText format, and outputs HTML.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With