I’d like my running make htmllive instance to process changed files in nitpicky mode. If I add -n to SPHINXOPTS it stops after finding a single problem (warnings converted to errors). If I add --keep-going to SPHINXOPTS it complains that it’s an unknown command line arg:
I think I understand what’s going on. The current release is 2021.03.14. --keep-going was added to the SPHINX_BUILD_OPTIONS on 2022-12-24, so I should be able to build my own version.
My goal is to have make htmllive running, edit a file and have it rechecked without crashing the running sphinx-autobuild.
I believe I’ve figured things out. Whatever work the sphinx-autobuild code does to process args doesn’t accommodate long form command line args like --keep-going. My solution for now was to add a -k flag to sphinx proper and specify 'k' in SPHINX_BUILD_OPTIONS. I thought sphinx-autobuild would just reprocess the changed file, but it appears to process everything all over again. Despite the fact that my change keeps things going, it’s not as helpful as I thought it would be.
Nope, as non-nitpicky warnings are always emitted (at the default errorlevel), -n emits nitpicky warnings too, and -W makes all emitted warnings errors.
In front of a computer, I dug into this a bit… The cpython/Doc/Makefile has a couple different SPHINX-related variable settings, not next to one another:
My usual first glance at a Makefile involves the target of interest. I saw SPHINXOPTS, but didn’t think to look any farther for more ways to tweak the sphinx-build command.