Skip to content

Commit c70b31a

Browse files
authored
Support more flags when building docs (#1175)
Signed-off-by: Ayush Dattagupta <[email protected]>
1 parent b50d916 commit c70b31a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
# make docs-html DOCS_ENV=ga # Build docs for GA
1111
# make docs-html # Build docs with no special tag
1212
# make docs-live DOCS_ENV=draft # Live server with draft tag
13+
# make docs-live SPHINX_AUTOBUILD_FLAGS="--port 8080 --host 0.0.0.0" # Custom flags
1314
# make docs-publish DOCS_ENV=ga # Production build (fails on warnings)
1415

1516
DOCS_ENV ?=
17+
SPHINX_AUTOBUILD_FLAGS ?=
1618

1719
# Detect OS for cross-platform compatibility
1820
ifeq ($(OS),Windows_NT)
@@ -47,7 +49,7 @@ docs-clean:
4749

4850
docs-live:
4951
@echo "Starting live-reload server (sphinx-autobuild)..."
50-
cd docs && $(VENV_PYTHON) -m sphinx_autobuild $(if $(DOCS_ENV),-t $(DOCS_ENV)) . _build/html
52+
cd docs && $(VENV_PYTHON) -m sphinx_autobuild $(if $(DOCS_ENV),-t $(DOCS_ENV)) $(SPHINX_AUTOBUILD_FLAGS) . _build/html
5153

5254
docs-env:
5355
@echo "Setting up docs virtual environment with uv..."
@@ -101,4 +103,4 @@ docs-live-ea:
101103
$(MAKE) docs-live DOCS_ENV=ea
102104

103105
docs-live-draft:
104-
$(MAKE) docs-live DOCS_ENV=draft
106+
$(MAKE) docs-live DOCS_ENV=draft

0 commit comments

Comments
 (0)