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

24
docs/data/source/conf.py Normal file
View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#
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 *
# 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path.append('source/_static')