Add rtd-specific syspath

This commit is contained in:
Julian Arni
2013-08-01 14:49:12 -04:00
parent 0908ce408a
commit 78ca8fb7be
6 changed files with 18 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ endif
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c . $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c source $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

View File

@@ -3,6 +3,11 @@
import sys, os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd: # Add to syspath so RTD will find the common conf file
sys.path.append('../../../')
from docs.shared.conf import *

View File

@@ -10,7 +10,7 @@ BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c . $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c source $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

View File

@@ -3,6 +3,11 @@
import sys, os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd: # Add to syspath so RTD will find the common conf file
sys.path.append('../../../')
from docs.shared.conf import *

View File

@@ -10,7 +10,7 @@ BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c . $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c source $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

View File

@@ -6,6 +6,11 @@
import sys, os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd: # Add to syspath so RTD will find the common conf file
sys.path.append('../../../')
from docs.shared.conf import *