From 795be9167a17c9347ba4a4eb98b2008550d56c54 Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Mon, 14 Dec 2015 16:27:53 +0300 Subject: [PATCH] Don't use default openstack theme for readthedocs Change-Id: Ia501f5534619f5a5bd42b4ec78b1b8c1e7518531 Closes-bug: #1525907 --- 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 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