diff options
author | Ha Van Tu <tuhv@vn.fujitsu.com> | 2016-09-07 11:21:43 +0700 |
---|---|---|
committer | Ha Van Tu <tuhv@vn.fujitsu.com> | 2016-09-07 11:55:14 +0700 |
commit | fb7be8ccd0b075fa34f6f8ab2df54e3ed36ebab1 (patch) | |
tree | 84a710c72611a0b1a777b19845272daf8fe4e5a7 /api-ref/source/conf.py | |
parent | 00a146bc8cf1cb075d44e4d5877f06d902449579 (diff) | |
download | keystone-fb7be8ccd0b075fa34f6f8ab2df54e3ed36ebab1.tar.gz |
[api-ref] Stop supporting os-api-ref 1.0.0
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
https://review.openstack.org/#/c/362170/
Change-Id: Ibdd4547d5cf90b31ddff0b548e649d46286cf70e
Diffstat (limited to 'api-ref/source/conf.py')
-rw-r--r-- | api-ref/source/conf.py | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index b09bc611d..05faea8cb 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -27,35 +27,18 @@ import subprocess 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', +] - 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 # 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 |