summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2020-07-15 23:53:59 +0200
committerMarge Bot <eric+marge@anholt.net>2020-07-22 21:51:24 +0000
commit5f649be7b58658e401dd56cac6f192336dbcee48 (patch)
tree006471bf289d071eabec1c4e0610d42e1f99bc32 /bin
parent6c4ad62723053de0fc03f6d922fdc804ac58c266 (diff)
post_version.py: fix relnotes links
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5928>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post_version.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/post_version.py b/bin/post_version.py
index 328a48b2604..359cbd9012c 100755
--- a/bin/post_version.py
+++ b/bin/post_version.py
@@ -34,10 +34,14 @@ def update_release_notes(version: str) -> None:
new_relnotes = []
first_list = True
+ second_list = True
for line in relnotes:
if first_list and line.startswith('-'):
first_list = False
- new_relnotes.append(f'- `{version} release notes <relnotes/{version}.rst>`__\n')
+ new_relnotes.append(f'- :doc:`{version} release notes <relnotes/{version}>`\n')
+ if not first_list and second_list and line.startswith(' relnotes/'):
+ second_list = False
+ new_relnotes.append(f' relnotes/{version}\n')
new_relnotes.append(line)
with open(p, 'w') as f: