From 583aea49497751dd6d5cec889f9317c5b46faf14 Mon Sep 17 00:00:00 2001 From: Nguyen Phuong An Date: Fri, 9 Sep 2016 09:33:26 +0700 Subject: [PATCH] [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. Change-Id: I9974796c2e2ccab5d2f4f651d082632de040f3c4 Reference: Ia6245d502fde38cd4d63aa4a786b6296b22a37a1 --- api-ref/source/conf.py | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index b09110bac3..83688a53d3 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