Make api-ref bug link point to nova
The openstackdocstheme includes a bug reference link, which defaults to openstack manuals. We want to update this to be a Nova bug instead. This also cleans up the pre openstackdocstheme support code Change-Id: Iace4619c37b04b1504a7051e9e5274b2a3b77c24
This commit is contained in:
parent
bc344458e7
commit
476f126c66
@ -29,33 +29,20 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
# TODO(Graham Hayes): Remove the following block of code when os-api-ref is
|
import openstackdocstheme # noqa
|
||||||
# using openstackdocstheme
|
import os_api_ref # noqa
|
||||||
|
|
||||||
import os_api_ref
|
extensions = [
|
||||||
|
'os_api_ref',
|
||||||
|
]
|
||||||
|
|
||||||
if getattr(os_api_ref, 'THEME', 'olsosphinx') == 'openstackdocstheme':
|
|
||||||
# We are on the new version with openstackdocstheme support
|
|
||||||
|
|
||||||
extensions = [
|
html_theme = 'openstackdocs'
|
||||||
'os_api_ref',
|
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
||||||
]
|
html_theme_options = {
|
||||||
|
"sidebar_mode": "toc",
|
||||||
import openstackdocstheme # noqa
|
}
|
||||||
|
html_context = {'bug_project': 'nova', 'bug_tag': 'api-ref'}
|
||||||
html_theme = 'openstackdocs'
|
|
||||||
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
|
||||||
html_theme_options = {
|
|
||||||
"sidebar_mode": "toc",
|
|
||||||
}
|
|
||||||
|
|
||||||
else:
|
|
||||||
# We are on the old version without openstackdocstheme support
|
|
||||||
|
|
||||||
extensions = [
|
|
||||||
'os_api_ref',
|
|
||||||
'oslosphinx',
|
|
||||||
]
|
|
||||||
|
|
||||||
# End temporary block
|
# End temporary block
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user