summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Phuong An <AnNP@vn.fujitsu.com>2016-09-07 10:43:54 +0700
committerNguyen Phuong An <AnNP@vn.fujitsu.com>2016-09-07 08:24:39 +0000
commitd5503f97eeb8dba8efefca086aaab01ecb016d78 (patch)
tree6b887cb8ff6e952b85ec4e88bba33574db584c94
parent047fc52a99e99bddc89f9b83759bc2f84d98f48c (diff)
downloadironic-d5503f97eeb8dba8efefca086aaab01ecb016d78.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: I14266932bf6f936991f1ea675f3e61431b4a0b1c
-rw-r--r--api-ref/source/conf.py36
1 files changed, 9 insertions, 27 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py
index fe1164aab..bf3c54274 100644
--- a/api-ref/source/conf.py
+++ b/api-ref/source/conf.py
@@ -28,35 +28,17 @@ import os
import subprocess
import sys
-# 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