From 6e132bade2bd13b42a353ea900384dd5c36d1180 Mon Sep 17 00:00:00 2001 From: wanghui Date: Tue, 27 Mar 2018 10:11:28 +0800 Subject: [PATCH] Move openstackdocstheme to extensions in api-ref Move openstackdocstheme to extensions. According to the guide below: https://docs.openstack.org/openstackdocstheme/latest/ Change-Id: Idf82326985c32fc88f715b998db422d9cb3d6664 --- api-ref/source/conf.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 28085889d..045790dd7 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -28,12 +28,10 @@ import sys extensions = [ 'os_api_ref', + 'openstackdocstheme', ] -import openstackdocstheme # noqa - html_theme = 'openstackdocs' -html_theme_path = [openstackdocstheme.get_html_theme_path()] html_theme_options = { "sidebar_mode": "toc", } @@ -103,9 +101,10 @@ show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' -# html_context allows us to pass arbitrary values into the html template -html_context = {'bug_tag': 'api-ref', - 'bug_project': 'zun'} +# openstackdocstheme options +repository_name = 'openstack/zun' +bug_project = 'zun' +bug_tag = 'api-ref' # -- Options for man page output ----------------------------------------------