Skip to content

Commit

Permalink
docs: add labels to release subsections
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Apr 20, 2023
1 parent 54ea322 commit 0e47f45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/create_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def create_release_notes():
is_last = idx == len(releases) - 1

if release.is_latest:
fptr.write(".. _latest_release:\n\n")
fptr.write(".. _release:latest:\n\n")

fptr.write(f".. _release:{release.name}:\n\n")

title = f":vunit_commit:`{release.name!s} <{release.tag!s}>` - {release.date.strftime('%Y-%m-%d')!s}"
if release.is_latest:
Expand All @@ -66,9 +68,7 @@ def create_release_notes():
f"<https://github.com/VUnit/vunit/compare/{releases[idx + 1].tag!s}...{release.tag!s}>`__"
)

fptr.write("\n\n")

fptr.write(f".. include:: {relpath(release.file_name, source_path)!s}\n")
fptr.write(f"\n\n.. include:: {relpath(release.file_name, source_path)!s}\n\n")


class Release(object):
Expand Down

0 comments on commit 0e47f45

Please sign in to comment.