Move openstackdocstheme to extensions in api-ref

Move openstackdocstheme to extensions. According to the guide below:
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I58de11278e0cd203312c910057285800f82eb5d7
This commit is contained in:
wanghui 2018-03-27 10:39:36 +08:00
parent 96e8e6c649
commit e94f1a22e6

View File

@ -30,12 +30,10 @@ import warnings
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",
}
@ -105,14 +103,10 @@ show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# Config logABug feature
# source tree
giturl = (
u'https://git.openstack.org/cgit/openstack/magnum/tree/api-ref/source')
# html_context allows us to pass arbitrary values into the html template
html_context = {'bug_tag': 'api-ref',
'giturl': giturl,
'bug_project': 'magnum'}
# openstackdocstheme options
repository_name = 'openstack/magnum'
bug_project = 'magnum'
bug_tag = 'api-ref'
# -- Options for man page output ----------------------------------------------