docs: use version-number as toctree-title for relnotes
Using the full titles makes most of these take up two lines in the toctree. The version number is really the only thing we should care about, though. Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21956>
This commit is contained in:

committed by
Marge Bot

parent
b09e1ecef0
commit
ba6336ce3e
@@ -323,9 +323,10 @@ def update_release_notes_index(version: str) -> None:
|
||||
if first_list and line.startswith('-'):
|
||||
first_list = False
|
||||
new_relnotes.append(f'- :doc:`{version} release notes <relnotes/{version}>`\n')
|
||||
if not first_list and second_list and line.startswith(' relnotes/'):
|
||||
if (not first_list and second_list and
|
||||
re.match(' \d+.\d+(.\d+)? <relnotes/\d+.\d+(.\d+)?>', line)):
|
||||
second_list = False
|
||||
new_relnotes.append(f' relnotes/{version}\n')
|
||||
new_relnotes.append(f' {version} <relnotes/{version}>\n')
|
||||
new_relnotes.append(line)
|
||||
|
||||
with relnotes_index_path.open('w') as f:
|
||||
|
Reference in New Issue
Block a user