Sort config options

Sort the config options alphabetically, right now the list
at
https://docs.openstack.org/reno/latest/user/usage.html#configuring-reno
is unsorted which makes it hard to search for an option manually.

Change-Id: Ibed5606bf5280752ca8826e6e0f23fa0a22c44c5
This commit is contained in:
Andreas Jaeger
2020-04-21 08:11:34 +02:00
parent a19cd28f20
commit a4e7903d4f

View File

@ -31,7 +31,7 @@ def _multi_line_string(s, indent=''):
def _format_option_help(options):
"Produce RST lines for the configuration options."
for opt in options:
for opt in sorted(options, key=lambda opt: opt.name):
yield '``{}``'.format(opt.name)
for l in _multi_line_string(opt.help, ' '):
yield l