Commit 78ca8fb7 by Julian Arni

Add rtd-specific syspath

parent 0908ce40
...@@ -15,7 +15,7 @@ endif ...@@ -15,7 +15,7 @@ endif
# Internal variables. # Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter 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 # the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
......
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
import sys, os 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 * from docs.shared.conf import *
......
...@@ -10,7 +10,7 @@ BUILDDIR = build ...@@ -10,7 +10,7 @@ BUILDDIR = build
# Internal variables. # Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter 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 # the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
......
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
import sys, os 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 * from docs.shared.conf import *
......
...@@ -10,7 +10,7 @@ BUILDDIR = build ...@@ -10,7 +10,7 @@ BUILDDIR = build
# Internal variables. # Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter 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 # the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
......
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
import sys, os 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 * from docs.shared.conf import *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment