From 060548df538bc6c40da865a3b611e24a224cdd7d Mon Sep 17 00:00:00 2001 From: hoangvv Date: Tue, 25 Feb 2025 11:26:52 +0700 Subject: [PATCH] update Makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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