mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Docs: Only install sphinx-autobuild for make htmllive (#119607)
This commit is contained in:
parent
59630f92d8
commit
88e3fee3f8
2 changed files with 5 additions and 2 deletions
|
|
@ -150,10 +150,14 @@ gettext: build
|
||||||
htmlview: html
|
htmlview: html
|
||||||
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
|
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
|
||||||
|
|
||||||
|
.PHONY: ensure-sphinx-autobuild
|
||||||
|
ensure-sphinx-autobuild: venv
|
||||||
|
$(VENVDIR)/bin/sphinx-autobuild --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install sphinx-autobuild
|
||||||
|
|
||||||
.PHONY: htmllive
|
.PHONY: htmllive
|
||||||
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
|
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
|
||||||
htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0
|
htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0
|
||||||
htmllive: html
|
htmllive: ensure-sphinx-autobuild html
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: clean-venv
|
clean: clean-venv
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ sphinx~=7.3.0
|
||||||
|
|
||||||
blurb
|
blurb
|
||||||
|
|
||||||
sphinx-autobuild
|
|
||||||
sphinxext-opengraph==0.7.5
|
sphinxext-opengraph==0.7.5
|
||||||
sphinx-notfound-page==1.0.0
|
sphinx-notfound-page==1.0.0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue