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
|
||||
JOBS = auto
|
||||
SOURCES =
|
||||
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
|
||||
SPHINXERRORHANDLING = --fail-on-warning --keep-going --warning-file sphinx-warnings.txt
|
||||
|
||||
ALLSPHINXOPTS = -b $(BUILDER) \
|
||||
-j $(JOBS) \
|
||||
ALLSPHINXOPTS = --builder $(BUILDER) \
|
||||
--jobs $(JOBS) \
|
||||
$(SPHINXOPTS) $(SPHINXERRORHANDLING) \
|
||||
peps $(BUILDDIR) $(SOURCES)
|
||||
|
||||
|
@ -33,7 +33,9 @@ ensure-sphinx-autobuild: venv
|
|||
## htmllive to rebuild and reload HTML files in your browser
|
||||
.PHONY: htmllive
|
||||
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
|
||||
|
||||
## dirhtml to render PEPs to "index.html" files within "pep-NNNN" directories
|
||||
|
|
Loading…
Reference in New Issue