Skip to content

Commit 332169c

Browse files
committed
Add support for sphinx autobuild
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent d414a30 commit 332169c

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

docs/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8+
SPHINXAUTOBUILD = sphinx-autobuild
89
SOURCEDIR = source
910
BUILDDIR = build
1011

@@ -14,6 +15,13 @@ help:
1415

1516
.PHONY: help Makefile
1617

18+
# Run the development server using sphinx-autobuild
19+
docs:
20+
@echo
21+
@echo "Starting up the docs server..."
22+
@echo
23+
$(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
24+
1725
# Catch-all target: route all unknown targets to Sphinx using the new
1826
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1927
%: Makefile

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ snowballstemmer==2.2.0
101101
soupsieve==2.3.2
102102
Sphinx==4.5.0
103103
sphinxcontrib-applehelp==1.0.2
104+
sphinx-autobuild==2024.10.3
104105
sphinxcontrib-devhelp==1.0.2
105106
sphinxcontrib-django2==1.5
106107
sphinxcontrib-htmlhelp==2.0.0

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ dev =
111111
Sphinx>=4.5.0
112112
sphinx_rtd_theme>=1.0.0
113113
sphinxcontrib-django2>=1.5
114+
sphinx-autobuild>=2024.10.3
114115
# Tests
115116
pytest>=7.0.1
116117
pytest-django>=4.5.2

0 commit comments

Comments
 (0)