8000 [3.13] Docs: Only install sphinx-autobuild for `make htmllive` (GH-11… · python/cpython@ba71835 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba71835

Browse files
[3.13] Docs: Only install sphinx-autobuild for make htmllive (GH-119607) (#119621)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent f1302c1 commit ba71835

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Doc/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
150150
htmlview: html
151151
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
152152

153+
.PHONY: ensure-sphinx-autobuild
154+
ensure-sphinx-autobuild: venv
155+
$(VENVDIR)/bin/sphinx-autobuild --version > /dev/null || $(VENVDIR)/bin/python3 -m pip install sphinx-autobuild
156+
153157
.PHONY: htmllive
154158
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
155159
htmllive: SPHINXOPTS = --re-ignore="/venv/" --open-browser --delay 0
156-
htmllive: html
160+
htmllive: ensure-sphinx-autobuild html
157161

158162
.PHONY: clean
159163
clean: clean-venv

Doc/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ sphinx~=7.3.0
1010

1111
blurb
1212

13-
sphinx-autobuild
1413
sphinxext-opengraph==0.7.5
1514
sphinx-notfound-page==1.0.0
1615

0 commit comments

Comments
 (0)
0