6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-07 07:54:03 +00:00

docs: keep running "make watch" on failure

This commit is contained in:
Régis Behmo 2021-11-23 17:59:14 +01:00 committed by Régis Behmo
parent 852759ae35
commit 23847f6441

View File

@ -1,11 +1,14 @@
.DEFAULT_GOAL := html .DEFAULT_GOAL := html
.PHONY: help .PHONY: help
build:
sphinx-build -b html -a -E -n $(BUILD_ARGS) "." "_build/html"
html: html:
sphinx-build -b html -a -E -n -W "." "_build/html" $(MAKE) build BUILD_ARGS="-W"
browse: browse:
sensible-browser _build/html/index.html sensible-browser _build/html/index.html
watch: html browse watch: build browse
while true; do inotifywait -e modify *.rst */*.rst */*/*.rst ../*.rst conf.py; $(MAKE) html; done while true; do inotifywait -e modify *.rst */*.rst */*/*.rst ../*.rst conf.py; $(MAKE) build || true; done