File tree Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ doc html:
23
23
htmlview :
24
24
$(MAKE ) -C docs htmlview
25
25
26
+ .PHONY : htmllive
27
+ htmllive :
28
+ $(MAKE ) -C docs htmllive
29
+
26
30
.PHONY : doccheck
27
31
doccheck :
28
32
$(MAKE ) doc
43
47
@echo " docserve run an HTTP server on the docs directory"
44
48
@echo " html make HTML docs"
45
49
@echo " htmlview open the index page built by the html target in your browser"
50
+ @echo " htmllive rebuild and reload HTML files in your browser"
46
51
@echo " install make and install"
47
52
@echo " install-coverage make and install with C coverage"
48
53
@echo " lint run the lint checks"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 20
20
@echo " Please use \` make <target>' where <target> is one of"
21
21
@echo " html to make standalone HTML files"
22
22
@echo " htmlview to open the index page built by the html target in your browser"
23
+ @echo " htmllive to rebuild and reload HTML files in your browser"
23
24
@echo " serve to start a local server for viewing docs"
24
- @echo " livehtml to start a local server for viewing docs and auto-reload on change"
25
25
@echo " dirhtml to make HTML files named index.html in directories"
26
26
@echo " singlehtml to make a single large HTML file"
27
27
@echo " pickle to make pickle files"
@@ -201,9 +201,10 @@ doctest:
201
201
htmlview : html
202
202
$(PYTHON ) -c " import os, webbrowser; webbrowser.open('file://' + os.path.realpath('$( BUILDDIR) /html/index.html'))"
203
203
204
- .PHONY : livehtml
205
- livehtml : html
206
- livereload $(BUILDDIR ) /html -p 33233
204
+ .PHONY : htmllive
205
+ htmllive : SPHINXBUILD = $(PYTHON ) -m sphinx_autobuild
206
+ htmllive : SPHINXOPTS = --open-browser --delay 0
207
+ htmllive : html
207
208
208
209
.PHONY : serve
209
210
serve :
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ optional-dependencies.docs = [
44
44
" furo" ,
45
45
" olefile" ,
46
46
" sphinx>=8.2" ,
47
+ " sphinx-autobuild" ,
47
48
" sphinx-copybutton" ,
48
49
" sphinx-inline-tabs" ,
49
50
" sphinxext-opengraph" ,
You can’t perform that action at this time.
0 commit comments