Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
552
stars
84
forks
source link
Server stops rebuilding on changes if the pre-build step fails #158
Closed
pradyunsg closed 1 month ago
I think the title is a sufficiently clear description. Let me know if more details are necessary.
How to reproduce
Checkout https://github.com/pradyunsg/furo/tree/2024.04.27
Run
nox -s docs-live
Wait for the initial build to complete.
Modify source tree such that the pre-build command would fail.
For this reproducer, modify
src/furo/assets/styles/content/_admonitions.sass
to be invalid by adding a comma at the end of line 3 of that file.Notice an exception originating from the pre-build command and the output statement from sphinx-autobuild stating:
Fix the pre-build command and save a file that would be watched by the server.
For this reproducer, undo the addition done in step 4 (i.e. remove the comma) and save.
Notice that no rebuild was triggered.
The server keeps serving the relevant changes while this is happening.