Fix murano-specs gate
Change-Id: Ib90d89982a97692160f0ed62332953af691030ba
This commit is contained in:
parent
09424cf499
commit
3e94d71732
|
@ -33,12 +33,12 @@ extensions = ['redirect',
|
||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
'oslosphinx',
|
'openstackdocstheme',
|
||||||
'yasfb',
|
'yasfb',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Feed configuration for yasfb
|
# Feed configuration for yasfb
|
||||||
feed_base_url = 'http://murano-specs.readthedocs.org'
|
feed_base_url = 'http://specs.openstack.org/openstack/murano-specs'
|
||||||
feed_author = 'OpenStack Murano Team'
|
feed_author = 'OpenStack Murano Team'
|
||||||
|
|
||||||
todo_include_todos = True
|
todo_include_todos = True
|
||||||
|
|
|
@ -7,15 +7,9 @@
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
from sphinx.application import ENV_PICKLE_FILENAME
|
from sphinx.util import logging
|
||||||
from sphinx.util.console import bold
|
|
||||||
|
|
||||||
|
LOG = logging.getLogger(__name__)
|
||||||
def setup(app):
|
|
||||||
from sphinx import application
|
|
||||||
if not isinstance(app, application.Sphinx):
|
|
||||||
return
|
|
||||||
app.connect('build-finished', emit_redirects)
|
|
||||||
|
|
||||||
|
|
||||||
def process_redirect_file(app, path, ent):
|
def process_redirect_file(app, path, ent):
|
||||||
|
@ -37,7 +31,7 @@ def process_redirect_file(app, path, ent):
|
||||||
|
|
||||||
|
|
||||||
def emit_redirects(app, exc):
|
def emit_redirects(app, exc):
|
||||||
app.builder.info(bold('scanning %s for redirects...') % app.builder.srcdir)
|
LOG.info('scanning %s for redirects...', app.builder.srcdir)
|
||||||
|
|
||||||
def process_directory(path):
|
def process_directory(path):
|
||||||
for ent in os.listdir(path):
|
for ent in os.listdir(path):
|
||||||
|
@ -45,8 +39,12 @@ def emit_redirects(app, exc):
|
||||||
if os.path.isdir(p):
|
if os.path.isdir(p):
|
||||||
process_directory(p)
|
process_directory(p)
|
||||||
elif ent == 'redirects':
|
elif ent == 'redirects':
|
||||||
app.builder.info(' found redirects at %s' % p)
|
LOG.info(' found redirects at %s' % p)
|
||||||
process_redirect_file(app, path, ent)
|
process_redirect_file(app, path, ent)
|
||||||
|
|
||||||
process_directory(app.builder.srcdir)
|
process_directory(app.builder.srcdir)
|
||||||
app.builder.info('...done')
|
LOG.info('...done')
|
||||||
|
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.connect('build-finished', emit_redirects)
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
pbr>=2.0.0,!=2.1.0 # Apache-2.0
|
pbr>=2.0.0,!=2.1.0 # Apache-2.0
|
||||||
oslosphinx>=4.7.0 # Apache-2.0
|
|
||||||
sphinx>=1.5.1 # BSD
|
sphinx>=1.5.1 # BSD
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
yasfb>=0.5.1,!=0.6.0
|
yasfb>=0.8.0
|
||||||
|
openstackdocstheme>=1.19.0 # Apache-2.0
|
||||||
|
|
Loading…
Reference in New Issue