add Makefile target for single HTML page (#25313)
This commit is contained in:
parent
99a30f8fdb
commit
365d06c538
1 changed files with 10 additions and 1 deletions
|
@ -8,6 +8,11 @@ else
|
|||
CPUS ?= $(shell nproc)
|
||||
endif
|
||||
|
||||
assertrst:
|
||||
ifndef rst
|
||||
$(error specify document or pattern with rst=somefile.rst)
|
||||
endif
|
||||
|
||||
all: docs
|
||||
|
||||
docs: clean htmldocs
|
||||
|
@ -51,3 +56,7 @@ staticmin:
|
|||
|
||||
epub:
|
||||
(CPUS=$(CPUS) make -f Makefile.sphinx epub)
|
||||
|
||||
htmlsingle: assertrst
|
||||
sphinx-build -j $(CPUS) -b html -d _build/doctrees ./rst _build/html rst/$(rst)
|
||||
@echo "Output is in _build/html/$(rst)"
|
||||
|
|
Loading…
Reference in a new issue