From ec5fbb52be2ec213ca342dfab51c9180c932019b Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Mon, 6 Aug 2018 15:08:59 -0700 Subject: [PATCH] Fix release note theme for virtualbmc Change-Id: I190263a1faa0febd30f8daaeaa4420573fe29903 --- releasenotes/source/conf.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 533573e..30e430e 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -43,10 +43,15 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'openstackdocstheme', 'reno.sphinxext' ] +try: + import openstackdocstheme + extensions.append('openstackdocstheme') +except ImportError: + openstackdocstheme = None + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -97,7 +102,10 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' +if openstackdocstheme is not None: + html_theme = 'openstackdocs' +else: + html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the