Merge "add doc link validation to release checklist and tox"

This commit is contained in:
Jenkins 2017-09-26 16:00:36 +00:00 committed by Gerrit Code Review
commit b07ba9dac9
3 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,11 @@ import logging
import os
import sys
import eventlet
# module ref generation can cause partial greening resulting in thread issues
# during the linkcheck builder, so initialize eventlet upfront
eventlet.monkey_patch()
# NOTE(amotoki): In case of oslo_config.sphinxext is enabled,
# when resolving automodule neutron.tests.functional.db.test_migrations,
@ -271,3 +276,10 @@ config_generator_config_file = [
_get_config_generator_config_definition(conf)
for conf in _config_generator_config_files
]
linkcheck_anchors_ignore = [
# skip gerrit anchors
'\/q\/.*',
'q\,.*',
'\/c\/.*'
]

View File

@ -33,6 +33,8 @@ Prior to major release,
the context of the release planned;
#. check that release notes and sample configuration files render correctly,
arrange clean-up if needed.
#. ensure all doc links are valid by running ``tox -e linkcheck`` and
addressing any broken links.
New major release process contains several phases:

View File

@ -125,6 +125,9 @@ commands = {posargs}
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:linkcheck]
commands = sphinx-build -W -b linkcheck doc/source doc/build/linkcheck
[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent