1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
# You can set these variables from the command lines
SPHINXOPTS ?= -j $(shell nproc) -nWT --keep-going
SPHINXBUILD ?= sphinx-build
.PHONY: all html clean
all: html
# generate html documentation with warning as errors
html:
$(SPHINXBUILD) $(SPHINXOPTS) -b html . ./_build/html/
# remove generated sphinx gallery examples and sphinx documentation
clean:
rm -rf auto_examples && rm -rf generated && rm -rf _build
view:
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/_build/html/index.html')"
show: view
|