diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-14 19:29:10 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-14 19:29:10 +0000 |
commit | 4b45d9beca5d731bd28bdf9bf0c4fffc592e64c5 (patch) | |
tree | 91b1eca3c5547e3f5b538ce51d84d97fc504f16a /api-ref | |
parent | ed04418957d0f7c9642d31cd3dd59e29223cf161 (diff) | |
parent | b31098a2770697dcdf3b4a7539569db8cb6aa04f (diff) | |
download | designate-4b45d9beca5d731bd28bdf9bf0c4fffc592e64c5.tar.gz |
Merge "[api-ref] Remove temporary block in conf.py"
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/conf.py | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index c2cc5757..034e96d7 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -28,36 +28,18 @@ import sys from designate.version import version_info -# TODO(Graham Hayes): Remove the following block of code when os-api-ref is -# using openstackdocstheme +import openstackdocstheme -import os_api_ref +html_theme = 'openstackdocs' +html_theme_path = [openstackdocstheme.get_html_theme_path()] +html_theme_options = { + "sidebar_mode": "toc", + "sidebar_dropdown": "api_ref", +} -if getattr(os_api_ref, 'THEME', 'olsosphinx') == 'openstackdocstheme': - # We are on the new version with openstackdocstheme support - - extensions = [ - 'os_api_ref', - ] - - import openstackdocstheme # noqa - - html_theme = 'openstackdocs' - html_theme_path = [openstackdocstheme.get_html_theme_path()] - html_theme_options = { - "sidebar_mode": "toc", - "sidebar_dropdown": "api_ref", - } - -else: - # We are on the old version without openstackdocstheme support - - extensions = [ - 'os_api_ref', - 'oslosphinx', - ] - -# End temporary block +extensions = [ + 'os_api_ref', +] # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the |