[api-ref] Remove temporary block in conf.py
The os-api-ref 1.0.0 is out. We can remove the support to older version now.
Reference:
6d41feb58d
Change-Id: I14266932bf6f936991f1ea675f3e61431b4a0b1c
This commit is contained in:
parent
047fc52a99
commit
d5503f97ee
@ -28,19 +28,7 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# TODO(Graham Hayes): Remove the following block of code when os-api-ref is
|
import openstackdocstheme
|
||||||
# using openstackdocstheme
|
|
||||||
|
|
||||||
import os_api_ref
|
|
||||||
|
|
||||||
if getattr(os_api_ref, 'THEME', 'olsosphinx') == 'openstackdocstheme':
|
|
||||||
# We are on the new version with openstackdocstheme support
|
|
||||||
|
|
||||||
extensions = [
|
|
||||||
'os_api_ref',
|
|
||||||
]
|
|
||||||
|
|
||||||
import openstackdocstheme # noqa
|
|
||||||
|
|
||||||
html_theme = 'openstackdocs'
|
html_theme = 'openstackdocs'
|
||||||
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
html_theme_path = [openstackdocstheme.get_html_theme_path()]
|
||||||
@ -48,16 +36,10 @@ if getattr(os_api_ref, 'THEME', 'olsosphinx') == 'openstackdocstheme':
|
|||||||
"sidebar_mode": "toc",
|
"sidebar_mode": "toc",
|
||||||
}
|
}
|
||||||
|
|
||||||
else:
|
|
||||||
# We are on the old version without openstackdocstheme support
|
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'os_api_ref',
|
'os_api_ref',
|
||||||
'oslosphinx',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# End temporary block
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
Loading…
Reference in New Issue
Block a user