1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add a table of contents to the generated changelog (#45046)

This commit is contained in:
Toshio Kuratomi 2018-09-03 23:25:23 -07:00 committed by John R Barker
parent 3beeeffef9
commit fdb51b34da

View file

@ -443,6 +443,7 @@ class ChangelogGenerator(object):
builder = RstBuilder()
builder.set_title('Ansible %s "%s" Release Notes' % (major_minor_version, codename))
builder.add_raw_rst('.. contents:: Topics\n\n')
for version, release in release_entries.items():
builder.add_section('v%s' % version)