From a908664996713ff17b6f7014bc6043553f24ea73 Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Fri, 18 Jan 2013 18:10:03 +0000 Subject: [PATCH] Added path for RTD --- doc/conf.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index cf9f7ca7..474836a2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -27,6 +27,14 @@ import sys, os # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] +# ----------------------- READTHEDOCS ------------------ +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + +if on_rtd: + sys.path.append("../GPy") + os.system("pwd") + os.system("sphinx-apidoc -f -o . ../GPy") + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -284,9 +292,3 @@ epub_copyright = u'2013, Author' # Allow duplicate toc entries. #epub_tocdup = True -# ----------------------- READTHEDOCS ------------------ -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' - -if on_rtd: - os.system("pwd") - os.system("sphinx-apidoc -f -o . ../GPy")