Skip to content

Commit

Permalink
Set Python path in Sphinx config to pick up local sgkit in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Jul 19, 2021
1 parent d5b0dd6 commit d7f61c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Minimal makefile for Sphinx documentation
#

PYPATH=${PWD}/..

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

0 comments on commit d7f61c3

Please sign in to comment.