make livehtml option

main
root 2023-11-26 16:26:31 -07:00
parent 9fe87f0854
commit fd5dfe4ea0
1 changed files with 15 additions and 4 deletions

View File

@ -1,12 +1,23 @@
# Makefile
# Jeff Moe with Parrot and Phind-CodeLlama-34B-v2_q8.gguf
.PHONY: html clean_sphinx clean
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs/source
BUILDDIR = docs/build
AUTOBUILDOPTS = --host 127.0.0.1 --port 8000 --ignore "*.swp" --ignore "*.swx"
.PHONY: html livehtml clean_sphinx clean
html:
cd docs/ && make html
cd docs && make $(SPHINXOPTS) html
livehtml:
sphinx-autobuild $(AUTOBUILDOPTS) $(SOURCEDIR) $(BUILDDIR)/html
clean_sphinx:
cd docs/ && make clean
cd docs && make clean
clean: clean_sphinx
clean:
rm -rf $(BUILDDIR)/*