Skip to content

Commit d4f6d54

Browse files
authored
Merge pull request #24 from SamJUK/feature/autobuild
feat: add sphinx autobuild
2 parents 26db50d + 968abc7 commit d4f6d54

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
7+
SPHINXAUTOBUILD = sphinx-autobuild
78
SOURCEDIR = .
89
BUILDDIR = _build
910

1011
# Put it first so that "make" without argument is like "make help".
1112
help:
1213
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1314

14-
.PHONY: help Makefile
15+
.PHONY: help Makefile watch
16+
17+
watch:
18+
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(0)
1519

1620
# Catch-all target: route all unknown targets to Sphinx using the new
1721
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sphinx>=5.0.0,<6.0.0
2+
sphinx-autobuild==2024.10.3
23
sphinx_rtd_theme>=1.0.0,<2.0
34
myst-parser>=0.18.0,<1.0
45
sphinx-copybutton>=0.2.11,<1.0

0 commit comments

Comments
 (0)