From 8639d9b69fdfd01566e74d91532ee8ae94b1b6a6 Mon Sep 17 00:00:00 2001 From: leiyashuai Date: Mon, 12 Feb 2018 17:08:43 +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: Iba6c11d432cdfc397f2cd2165c1fae7e7e0813fc --- api-ref/source/conf.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 83e22cc09c..852dd867d2 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -25,16 +25,15 @@ import os import sys -import openstackdocstheme html_theme = 'openstackdocs' -html_theme_path = [openstackdocstheme.get_html_theme_path()] html_theme_options = { "sidebar_mode": "toc", } extensions = [ 'os_api_ref', + 'openstackdocstheme', ] # If extensions (or modules to document with autodoc) are in another directory, @@ -71,6 +70,11 @@ master_doc = 'index' project = u'Shared File Systems API Reference' copyright = u'2010-present, OpenStack Foundation' +# openstackdocstheme options +repository_name = 'openstack/manila' +bug_project = 'manila' +bug_tag = 'api-ref' + # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. @@ -81,8 +85,6 @@ release = version_info.release_string() # The short X.Y version. version = version_info.version_string() -html_context = {'bug_project': 'manila', 'bug_tag': 'api-ref'} - # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #