diff --git a/docs/data/Makefile b/docs/data/Makefile index 378a64b7fb..db63ce4ec1 100644 --- a/docs/data/Makefile +++ b/docs/data/Makefile @@ -10,9 +10,9 @@ BUILDDIR = build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c . $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source # the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext diff --git a/docs/data/conf.py b/docs/data/conf.py index 9471ae33ab..3c335fe226 100644 --- a/docs/data/conf.py +++ b/docs/data/conf.py @@ -9,6 +9,7 @@ from docs.shared.conf import * # Add any paths that contain templates here, relative to this directory. templates_path.append('source/_templates') +sys.path.insert(0, os.path.abspath('.')) # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files,