Skip to content

Commit 88e3fee

Browse files
authored
Docs: Only install sphinx-autobuild for make htmllive (#119607)
1 parent 59630f9 commit 88e3fee

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: Doc/Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,14 @@ gettext: build
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

Diff for: Doc/requirements.txt

-1
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)