Skip to content

Commit

Permalink
add(docs): PORT option for live-reload
Browse files Browse the repository at this point in the history
Helps avoiding conflicts when previewing other versions of the docs, or
using other software running a local web server.
  • Loading branch information
JulioLoayzaM committed Sep 6, 2024
1 parent 428eff6 commit 75089f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

PORT ?= 8000

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Expand All @@ -34,6 +36,7 @@ $(VERSIONS):

livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)/livehtml" $(SPHINXOPTS) $(O) \
--port "$(PORT)" \
--watch ../crypto_condor \
--watch ../tests \
--ignore *.dat

0 comments on commit 75089f3

Please sign in to comment.