update Makefile

This commit is contained in:
hoangvv 2025-02-25 11:26:52 +07:00
parent 181c51c9ed
commit 060548df53

View File

@ -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