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

(cherry picked from commit fdb51b34da)
pull/45301/head
Toshio Kuratomi 6 years ago
parent ddb6471d64
commit 25025d8246

@ -443,6 +443,7 @@ class ChangelogGenerator(object):
builder = RstBuilder() builder = RstBuilder()
builder.set_title('Ansible %s "%s" Release Notes' % (major_minor_version, codename)) 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(): for version, release in release_entries.items():
builder.add_section('v%s' % version) builder.add_section('v%s' % version)

Loading…
Cancel
Save