From fdb51b34da27ca6bd8373201ab0062733a70ccaa Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 3 Sep 2018 23:25:23 -0700 Subject: [PATCH] Add a table of contents to the generated changelog (#45046) --- packaging/release/changelogs/changelog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/release/changelogs/changelog.py b/packaging/release/changelogs/changelog.py index 4f44a30f97..c11ceab222 100755 --- a/packaging/release/changelogs/changelog.py +++ b/packaging/release/changelogs/changelog.py @@ -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)