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
fix(docs): clean up sources and treat warnings as errors
Many deficiencies in the docs were being skipped over because
`sphinx-build` is lenient. Adding the `-W` flag treats issues
such as "missing reference" and "class not found" as errors.
Copy file name to clipboardExpand all lines: docs/Makefile
+46-52Lines changed: 46 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -5,47 +5,31 @@
5
5
SPHINXOPTS =
6
6
SPHINXBUILD = sphinx-build
7
7
PAPER =
8
-
PYTHON = python
9
-
ZIP = zip
10
8
BUILDDIR = _build
11
9
12
10
READTHEDOCS = true
13
11
exportREADTHEDOCS
14
12
13
+
# # User-friendly check for sphinx-build
14
+
# ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
15
+
# $(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: 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