Skip to content

Commit

Permalink
Add support for sphinx autobuild
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Oct 18, 2024
1 parent 0d2a593 commit 2050318
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SPHINXAUTOBUILD = sphinx-autobuild
SOURCEDIR = source
BUILDDIR = build

Expand All @@ -14,6 +15,13 @@ help:

.PHONY: help Makefile

# Run the development server using sphinx-autobuild
docs:
@echo
@echo "Starting up the docs server..."
@echo
$(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ snowballstemmer==2.2.0
soupsieve==2.3.2
Sphinx==4.5.0
sphinxcontrib-applehelp==1.0.2
sphinx-autobuild==2024.10.3
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-django2==1.5
sphinxcontrib-htmlhelp==2.0.0
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ dev =
Sphinx>=4.5.0
sphinx_rtd_theme>=1.0.0
sphinxcontrib-django2>=1.5
sphinx-autobuild>=2024.10.3
# Tests
pytest>=7.0.1
pytest-django>=4.5.2
Expand Down

0 comments on commit 2050318

Please sign in to comment.