Move openstackdocstheme to extensions in api-ref
Move openstackdocstheme to extensions. According to the guide below: https://docs.openstack.org/openstackdocstheme/latest/ Change-Id: I09acab1026c621d29ba5076345f8facdf7cfd91f
This commit is contained in:
parent
6ccfb11df9
commit
9ab92e8287
@ -30,16 +30,14 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
import openstackdocstheme
|
|
||||||
|
|
||||||
html_theme = 'openstackdocs'
|
html_theme = 'openstackdocs'
|
||||||
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
"sidebar_mode": "toc",
|
"sidebar_mode": "toc",
|
||||||
}
|
}
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'os_api_ref',
|
'os_api_ref',
|
||||||
|
'openstackdocstheme',
|
||||||
]
|
]
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
@ -78,13 +76,10 @@ release = version_info.release_string()
|
|||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = version_info.version_string()
|
version = version_info.version_string()
|
||||||
|
|
||||||
# Config logABug feature
|
# openstackdocstheme options
|
||||||
giturl = u'http://git.openstack.org/cgit/openstack/heat/tree/api-ref/source'
|
repository_name = 'openstack/heat'
|
||||||
# source tree
|
bug_project = 'heat'
|
||||||
# html_context allows us to pass arbitrary values into the html template
|
bug_tag = 'api-ref'
|
||||||
html_context = {'bug_tag': 'api-ref',
|
|
||||||
'giturl': giturl,
|
|
||||||
'bug_project': 'heat'}
|
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user