Document config parameters

Use oslo.config Sphinx extension to document all
config parameters.

Change-Id: Id934e8fac689d8cdbcc2d59663efdfcf1573e8ab
This commit is contained in:
Ilya Shakhat 2016-08-11 13:40:26 +03:00
parent 73c3995e77
commit f0168e1d6b
4 changed files with 15 additions and 1 deletions

View File

@ -24,8 +24,12 @@ sys.path.insert(0, os.path.abspath('../..'))
extensions = [
'sphinx.ext.autodoc',
'sphinxcontrib.httpdomain',
'oslo_config.sphinxconfiggen',
'oslo_config.sphinxext',
]
# config_generator_config_file = 'config-generator.conf'
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable

8
doc/source/config.rst Normal file
View File

@ -0,0 +1,8 @@
.. _config:
========================
Shaker config parameters
========================
.. show-options::
:config-file: config-generator.conf

View File

@ -21,4 +21,5 @@ to execute. Additionally tests may be tuned dynamically in command-line.
examples/index
examples_spot
reports/index
config
contributing

View File

@ -13,7 +13,8 @@ The config can be passed to Shaker rather by sourcing into system env ``source o
or via set of CLI parameters ``--os-project-name``, ``--os-username``, ``--os-password``,
``--os-auth-url`` and ``--os-region-name``.
Connection to SSL endpoints is configured by parameters ``--os-cacert`` and ``--os-insecure``
(to disable certificate verification).
(to disable certificate verification). Configuration can also be specified in
config file, refer to :ref:`config`. Config file name can be passed by parameter ``--config-file``.
.. note::
Shaker is better run under user with admin privileges. However, it's possible