diff --git a/doc/source/conf.py b/doc/source/conf.py index 1589d82..9392330 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -23,9 +23,14 @@ sys.path.insert(0, os.path.abspath('../..')) extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', - 'oslosphinx' ] +# Don't use default openstack theme, for readthedocs +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + +if not on_rtd: + 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