Infra: Define port for htmllive to avoid collisions (#3792)
This commit is contained in:
parent
f3b9e446fe
commit
50b459be73
10
Makefile
10
Makefile
|
@ -9,10 +9,10 @@ SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
|
||||||
BUILDER = html
|
BUILDER = html
|
||||||
JOBS = auto
|
JOBS = auto
|
||||||
SOURCES =
|
SOURCES =
|
||||||
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
|
SPHINXERRORHANDLING = --fail-on-warning --keep-going --warning-file sphinx-warnings.txt
|
||||||
|
|
||||||
ALLSPHINXOPTS = -b $(BUILDER) \
|
ALLSPHINXOPTS = --builder $(BUILDER) \
|
||||||
-j $(JOBS) \
|
--jobs $(JOBS) \
|
||||||
$(SPHINXOPTS) $(SPHINXERRORHANDLING) \
|
$(SPHINXOPTS) $(SPHINXERRORHANDLING) \
|
||||||
peps $(BUILDDIR) $(SOURCES)
|
peps $(BUILDDIR) $(SOURCES)
|
||||||
|
|
||||||
|
@ -33,7 +33,9 @@ ensure-sphinx-autobuild: venv
|
||||||
## htmllive to rebuild and reload HTML files in your browser
|
## htmllive to rebuild and reload HTML files in your browser
|
||||||
.PHONY: htmllive
|
.PHONY: htmllive
|
||||||
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
|
htmllive: SPHINXBUILD = $(VENVDIR)/bin/sphinx-autobuild
|
||||||
htmllive: SPHINXERRORHANDLING = --re-ignore="/\.idea/|/venv/|/pep-0000.rst|/topic/" --open-browser --delay 0
|
# Arbitrarily selected ephemeral port between 49152–65535
|
||||||
|
# to avoid conflicts with other processes:
|
||||||
|
htmllive: SPHINXERRORHANDLING = --re-ignore="/\.idea/|/venv/|/pep-0000.rst|/topic/" --open-browser --delay 0 --port 55302
|
||||||
htmllive: ensure-sphinx-autobuild html
|
htmllive: ensure-sphinx-autobuild html
|
||||||
|
|
||||||
## dirhtml to render PEPs to "index.html" files within "pep-NNNN" directories
|
## dirhtml to render PEPs to "index.html" files within "pep-NNNN" directories
|
||||||
|
|
Loading…
Reference in New Issue