Add specific doc build option and gate on warnings

Add doc venv to align with other OpenStack projejcts (such as keystone,
heat and nova-specs) who are using 'docs' for there doc builds.  Also
enable warnerrors in pbr to raise an error if there are any docs
formatting warnings.

Change-Id: Ifa31edf3c3392106a8aa1352bdd557bde2f1b9a1
This commit is contained in:
Joe Gordon 2014-04-02 16:21:37 -07:00
parent 08841d1742
commit da0a33a85a
3 changed files with 7 additions and 1 deletions

View File

@ -156,7 +156,7 @@ modindex_common_prefix = ['marconi.']
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.

View File

@ -87,3 +87,6 @@ cover-inclusive = true
;
; detailed-errors = 1
[pbr]
warnerrors = True

View File

@ -46,6 +46,9 @@ commands =
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
exclude = .venv*,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*.egg,.update-venv