From 018730f9c3a29b409c9c8bbd2d03c57285d759f2 Mon Sep 17 00:00:00 2001 From: Chris Spencer Date: Fri, 24 Jun 2016 08:45:09 -0500 Subject: [PATCH] updating conf to include READTHEDOCS env --- doc/source/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index ed29388..ad4d02f 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -16,6 +16,9 @@ import os import sys sys.path.insert(0, os.path.abspath('../..')) +on_read_the_docs = os.environ.get('READTHEDOCS') == 'True' + + # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be @@ -23,9 +26,11 @@ sys.path.insert(0, os.path.abspath('../..')) extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', - 'oslosphinx' ] +if not on_read_the_docs: + extensions.append('oslosphinx') + # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable