Skip to content

Commit 2d3a687

Browse files
committed
Try using sphinx-autobuild for live preview
1 parent 95404a2 commit 2d3a687

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,9 @@ deploy: clean html
190190

191191
.PHONY: all
192192
all: clean spellcheck linkcheck html ## Run checks and build html
193+
194+
.PHONY: livehtml
195+
livehtml:
196+
cd "$(DOCS_DIR)" && sphinx-autobuild \
197+
--ignore "*.swp" \
198+
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ jsx-lexer
33
lesscpy
44
linkify-it-py
55
myst-parser
6+
sphinx-autobuild
67
sphinx-book-theme
78
sphinx-copybutton
89
sphinx-togglebutton

0 commit comments

Comments
 (0)