diff --git a/Makefile b/Makefile index e1b0bbae8..295d41853 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,13 @@ html: $(HTML_BUILD_DIR)/_static/style.css @echo "Build finished." livehtml: SPHINXOPTS += -A collapse_menu=True -livehtml: $(HTML_BUILD_DIR)/_static/style.css +livehtml: @echo "Starting Live Server..." - $(SPHINX_AUTO_BUILD) $(SOURCE_DIR) $(HTML_BUILD_DIR) --port=8000 --host=0.0.0.0 --watch $(THEME) $(SPHINXOPTS) -c $(CONFIG_DIR) -b html + $(SPHINX_AUTO_BUILD) $(SOURCE_DIR) $(HTML_BUILD_DIR) \ + --port 8000 --host $(SERVER_IP) --watch $(THEME) \ + --pre-build "python3 -m pysassc $(THEME)/static/style.scss $(HTML_BUILD_DIR)/_static/style.css" \ + $(SPHINXOPTS) -c $(CONFIG_DIR) -b html + # To call *after* `make html` # Binary dependencies (Debian): texlive-fonts-recommended texlive-latex-extra # texlive-fonts-extra