Skip to content

Commit e59be31

Browse files
committed
Set Python path in Sphinx config to pick up local sgkit in notebooks
1 parent 3be2780 commit e59be31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Minimal makefile for Sphinx documentation
22
#
33

4+
PYPATH=${PWD}/..
5+
46
# You can set these variables from the command line, and also
57
# from the environment for the first two.
68
SPHINXOPTS ?=
@@ -22,4 +24,4 @@ clean:
2224
# Catch-all target: route all unknown targets to Sphinx using the new
2325
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2426
%: Makefile
25-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
27+
@PYTHONPATH=${PYPATH} $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)