diff options
author | Nguyen Phuong An <AnNP@vn.fujitsu.com> | 2016-09-07 14:02:10 +0700 |
---|---|---|
committer | Nguyen Phuong An <AnNP@vn.fujitsu.com> | 2016-10-06 16:50:17 +0700 |
commit | 19426182af0064b8143ee57a29998523ad52273b (patch) | |
tree | de8837902cb64ee8f075e237001364c293622178 /api-ref | |
parent | 396baf4139f64c6127a01c4f3f228901a55b1c7d (diff) | |
download | swift-19426182af0064b8143ee57a29998523ad52273b.tar.gz |
[api-ref] Remove temporary block in conf.py
The os-api-ref 1.0.0 is out. We can remove the support to older version now.
Reference:
https://github.com/openstack/senlin/commit/6d41feb58dd836d426c9b6f025846dbbf7295097
Change-Id: I0b28cd3f6b5c393d63b9ab2b4dcd3b7b3c20f9b4
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/conf.py | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index bb0ee2f20..a93a40f12 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -29,35 +29,17 @@ import subprocess import sys import warnings -# 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", +} -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", - } - -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 |