mirror of https://github.com/python/cpython
Fix `make htmllive` target (GH-124219)
Allow `make -C Doc htmllive` to work without manual venv activation Set PATH to ensure that `sphinx-autobuild` can find `sphinx-build`.
This commit is contained in:
parent
21d2a9ab2f
commit
9a6e2336e4
|
@ -152,7 +152,7 @@ htmlview: html
|
|||
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
|
||||
|
||||
.PHONY: htmllive
|
||||
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
|
||||
htmllive: SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-autobuild
|
||||
htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0
|
||||
htmllive: _ensure-sphinx-autobuild html
|
||||
|
||||
|
|
Loading…
Reference in New Issue