omit openstackdocstheme for READTHEDOCS

To allow readthedocs build to succeed.

Change-Id: I33ae52f1354c2a7ee1bf9367d699d85dcfabb28f
This commit is contained in:
Eric Kao 2017-10-12 14:20:32 -07:00
parent 1335688b5f
commit a168c9a4be
1 changed files with 7 additions and 1 deletions

View File

@ -24,12 +24,18 @@ sys.path.insert(0, os.path.abspath('./'))
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.todo',
'openstackdocstheme',
#'openstackdocstheme',
#'sphinx.ext.intersphinx',
'oslo_config.sphinxext',
'oslo_config.sphinxconfiggen',
]
# Don't use default openstack theme, for readthedocs
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:
extensions.append('openstackdocstheme')
# openstackdocstheme options
repository_name = 'openstack/congress'
bug_project = 'congress'