Merge "Add docs target to tox.ini"

This commit is contained in:
Jenkins 2016-08-22 15:48:51 +00:00 committed by Gerrit Code Review
commit 80de6aeb45
3 changed files with 15 additions and 0 deletions

View File

@ -37,6 +37,11 @@ add_module_names = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of glob-style patterns that should be excluded when looking for
# source files. They are matched against the source file names relative to the
# source directory, using slashes as directory separators on all platforms.
exclude_patterns = ['api/ironicclient.tests.functional.*']
# -- Options for HTML output --------------------------------------------------
# The theme to use for HTML and HTML Help pages. Major themes that come with

View File

@ -59,6 +59,9 @@ openstack.baremetal.v1 =
[pbr]
autodoc_index_modules = True
autodoc_exclude_modules =
ironicclient.tests.functional.*
warnerrors = True
[build_sphinx]
all_files = 1

View File

@ -39,6 +39,13 @@ commands = {posargs}
setenv = TESTS_DIR=./ironicclient/tests/functional
LANGUAGE=en_US
[testenv:docs]
setenv = PYTHONHASHSEED=0
sitepackages = False
envdir = {toxworkdir}/venv
commands =
python setup.py build_sphinx
[flake8]
ignore =
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools