switch from oslosphinx to openstackdocstheme
Change-Id: Iba29f6743f5f12e7cb9624c499010f262e34fd01 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
f4e2d83b00
commit
b6832f7a81
|
@ -18,11 +18,11 @@ import sys
|
|||
# oslosphinx uses reno and reno uses oslosphinx. Make oslosphinx for
|
||||
# reno optional to break the build cycle
|
||||
try:
|
||||
import oslosphinx
|
||||
import openstackdocstheme
|
||||
except:
|
||||
has_oslosphinx = False
|
||||
has_theme = False
|
||||
else:
|
||||
has_oslosphinx = True
|
||||
has_theme = True
|
||||
|
||||
|
||||
sys.path.insert(0, os.path.abspath('../..'))
|
||||
|
@ -36,8 +36,15 @@ extensions = [
|
|||
'reno.sphinxext',
|
||||
]
|
||||
|
||||
if has_oslosphinx:
|
||||
extensions.append('oslosphinx')
|
||||
if has_theme:
|
||||
extensions.append('openstackdocstheme')
|
||||
html_theme = 'openstackdocs'
|
||||
|
||||
# openstackdocstheme options
|
||||
repository_name = 'openstack/reno'
|
||||
bug_project = 'reno'
|
||||
bug_tag = ''
|
||||
html_last_updated_fmt = '%Y-%m-%d %H:%M'
|
||||
|
||||
# autodoc generation is a bit aggressive and a nuisance when doing heavy
|
||||
# text edit cycles.
|
||||
|
|
|
@ -8,7 +8,7 @@ mock>=1.2
|
|||
|
||||
coverage>=3.6
|
||||
python-subunit>=0.0.18
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
openstackdocstheme>=1.11.0 # Apache-2.0
|
||||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
testtools>=1.4.0
|
||||
|
|
Loading…
Reference in New Issue