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