You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Makefile
+35-28Lines changed: 35 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -12,21 +12,28 @@ BUILDDIR = _build
12
12
READTHEDOCS = true
13
13
exportREADTHEDOCS
14
14
15
-
# User-friendly check for sphinx-build
16
-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
17
-
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
22
+
.PHONY: test check-sphinx help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
23
+
24
+
test: clean
25
+
@if [ !-d venv ];then virtualenv venv;fi
26
+
venv/bin/pip install -q -r docs_requirements.txt
27
+
venv/bin/$(SPHINXBUILD) -a -b dirhtml $(ALLSPHINXOPTS)$(BUILDDIR)/dirhtml
28
+
test -f $(BUILDDIR)/dirhtml/index.html
29
+
30
+
check-sphinx:
31
+
# User-friendly check for sphinx-build
32
+
ifeq ($(shell which $(SPHINXBUILD)>/dev/null 2>&1;echo$$?), 1)
33
+
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
0 commit comments