Merge "[autohelp] Add table label for RST reference"

This commit is contained in:
Jenkins 2015-11-23 12:48:26 +00:00 committed by Gerrit Code Review
commit a918809e0e
2 changed files with 3 additions and 0 deletions

View File

@ -405,6 +405,7 @@ def write_files(package_name, options, target, output_format):
items.append(item) items.append(item)
env['items'].append(items) env['items'].append(items)
env['table_label'] = package_name + '-' + cat
ext = 'rst' if output_format == 'rst' else 'xml' ext = 'rst' if output_format == 'rst' else 'xml'
file_path = ("%(target)s/%(package_name)s-%(cat)s.%(ext)s" % file_path = ("%(target)s/%(package_name)s-%(cat)s.%(ext)s" %

View File

@ -8,6 +8,8 @@
autogenerate-config-doc tool from the openstack-doc-tools repository, or autogenerate-config-doc tool from the openstack-doc-tools repository, or
ask for help on the documentation mailing list, IRC channel or meeting. ask for help on the documentation mailing list, IRC channel or meeting.
.. _{{ table_label }}:
.. list-table:: Description of {{ nice_cat }} configuration options .. list-table:: Description of {{ nice_cat }} configuration options
:header-rows: 1 :header-rows: 1
:class: config-ref-table :class: config-ref-table