Skip to content

Commit a13649a

Browse files
committed
Fix gen-release-notes script
Since we moved to readthedocs, the section headers changed so this script needs to be updated.
1 parent eb0894e commit a13649a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/gen-release-notes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
first_heading_found = False
2121
for line in md_text.splitlines():
2222
if line.startswith("# "):
23+
# Skip the first section (normally # Releases).
24+
pass
25+
elif line.startswith("## "):
26+
# First second-level section, note it and skip the text,
27+
# as we are only interested in the individual release items.
2328
if first_heading_found:
2429
break
2530
first_heading_found = True

0 commit comments

Comments
 (0)