We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a30f8 commit 365d06cCopy full SHA for 365d06c
docs/docsite/Makefile
@@ -8,6 +8,11 @@ else
8
CPUS ?= $(shell nproc)
9
endif
10
11
+assertrst:
12
+ifndef rst
13
+ $(error specify document or pattern with rst=somefile.rst)
14
+endif
15
+
16
all: docs
17
18
docs: clean htmldocs
@@ -50,4 +55,8 @@ staticmin:
50
55
cat _themes/srtd/static/css/theme.css | sed -e 's/^[ ]*//g; s/[ ]*$$//g; s/\([:{;,]\) /\1/g; s/ {/{/g; s/\/\*.*\*\///g; /^$$/d' | sed -e :a -e '$$!N; s/\n\(.\)/\1/; ta' > _themes/srtd/static/css/theme.min.css
51
56
52
57
epub:
53
- (CPUS=$(CPUS) make -f Makefile.sphinx epub)
58
+ (CPUS=$(CPUS) make -f Makefile.sphinx epub)
59
60
+htmlsingle: assertrst
61
+ sphinx-build -j $(CPUS) -b html -d _build/doctrees ./rst _build/html rst/$(rst)
62
+ @echo "Output is in _build/html/$(rst)"
0 commit comments