Merge "Include sample configuration in dev docs"

This commit is contained in:
Jenkins
2015-08-05 00:53:03 +00:00
committed by Gerrit Code Review
5 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@@ -18,3 +18,4 @@ build
.coverage*
!.coveragerc
cover/
doc/source/_static/tempest.conf

0
doc/source/_static/.keep Normal file
View File

View File

@@ -38,6 +38,7 @@ Tempest Configuration Guide
:maxdepth: 2
configuration
sampleconf
---------------------
Command Documentation

14
doc/source/sampleconf.rst Normal file
View File

@@ -0,0 +1,14 @@
.. _tempest-sampleconf:
Sample Configuration File
==========================
The following is a sample Tempest configuration for adaptation and use. It is
auto-generated from Tempest when this documentation is built, so
if you are having issues with an option, please compare your version of
Tempest with the version of this documentation.
The sample configuration can also be viewed in `file form <_static/tempest.conf>`_.
.. include:: _static/tempest.conf
:code:

View File

@@ -108,7 +108,10 @@ commands =
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx {posargs}
# The sample config file we generate is included in the sphinxdoc, so build that first.
commands =
oslo-config-generator --config-file tools/config/config-generator.tempest.conf --output-file doc/source/_static/tempest.conf
python setup.py build_sphinx {posargs}
[testenv:pep8]
commands =