diff options
author | Doug Hellmann <doug@doughellmann.com> | 2016-06-23 16:16:48 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2016-07-13 16:16:28 -0400 |
commit | 6f2c57ca101216c4099c1dcb131fe8119af3c734 (patch) | |
tree | 5e68efa4bfd98849db016581e9a5e6cc78dd6990 /doc/source | |
parent | 4f97c6f8bede7d0e9e82f184b98a5a38e2639282 (diff) | |
download | oslo-config-6f2c57ca101216c4099c1dcb131fe8119af3c734.tar.gz |
update docs for sphinxconfiggen
We landed the feature to let the sphinx integration work with multiple
input and output files, but we didn't update the docs for it.
Change-Id: I1ef3f91aed3bdbcfdff4f8afc5fa325b34008495
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/sphinxconfiggen.rst | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/doc/source/sphinxconfiggen.rst b/doc/source/sphinxconfiggen.rst index 38a1752..5768d73 100644 --- a/doc/source/sphinxconfiggen.rst +++ b/doc/source/sphinxconfiggen.rst @@ -12,13 +12,39 @@ the config generator at the config file which tells it how to generate the sample config. If one isn't specified or it doesn't point to a real file the sample config file generation will be skipped. +To generate multiple files, set ``config_generator_config_file`` to a +list of tuples containing the input filename and the base name for the +output file. + +The output value can be ``None``, in which case the name is taken from +the input value. + +The input name can be an full path or a value relative to the +documentation source directory. + +For example:: + + config_generator_config_file = [ + ('../../etc/glance-api.conf', 'api'), + ('../../etc/glance-cache.conf', 'cache'), + ('../../etc/glance-glare.conf', None), + ('../../etc/glance-registry.conf', None), + ('../../etc/glance-scrubber.conf', None), + ] + +Produces the output files ``api.conf.sample``, ``cache.conf.sample``, +``glance-glare.conf.sample``, ``glance-registry.conf.sample``, and +``glance-scrubber.conf.sample``. + Output File Name ---------------- -By default the sphinx plugin will generate the sample config file and name the -file sample.config. However, if for whatever reason you'd like the name to be -more specific to the project name you can use the ``sample_config_basename`` -config option to specify the project name. If it's set the output filename -will be that value with a .conf.sample extension. For example if you set that -to be nova the output filename will be nova.conf.sample. You can also put a -subdirectory off of the srcdir as part of this value. +By default the sphinx plugin will generate the sample config file and +name the file ``sample.config``. However, if for whatever reason you'd +like the name to be more specific to the project name you can use the +``sample_config_basename`` config option to specify the project +name. If it's set the output filename will be that value with a +``.conf.sample`` extension. For example if you set the value to +"``nova``" the output filename will be "``nova.conf.sample``". You can +also include a subdirectory off of the documentation source directory +as part of this value. |