Skip to content

Commit a037aad

Browse files
committed
ensure sphinx is built within poetry
1 parent ef2a93f commit a037aad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
# You can set these variables from the command line.
55
SPHINXOPTS =
6-
SPHINXBUILD = sphinx-build
6+
SPHINXBUILD = poetry run sphinx-build
77
PAPER =
88
BUILDDIR = build
99

1010
# User-friendly check for sphinx-build
11-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12-
$(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/)
13-
endif
11+
#ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12+
#$(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/)
13+
#endif
1414

1515
# Internal variables.
1616
PAPEROPT_a4 = -D latex_paper_size=a4

0 commit comments

Comments
 (0)