Infra: Define port for htmllive to avoid collisions (#3792)

This commit is contained in:
Hugo van Kemenade 2024-05-28 09:00:19 +03:00 committed by GitHub
parent f3b9e446fe
commit 50b459be73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -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 4915265535
# 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