Skip to content

Commit 52ac23a

Browse files
committed
docs: add labels to release subsections
1 parent 54ea322 commit 52ac23a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ VHDL or SystemVerilog
8080
Using the Python Package Manager
8181
================================
8282

83-
The recommended way to get VUnit is to install the :ref:`latest stable release <latest_release>` via `pip <https://pip.pypa.io/en/stable/>`__:
83+
The recommended way to get VUnit is to install the :ref:`latest stable release <release:latest>` via `pip <https://pip.pypa.io/en/stable/>`__:
8484

8585
.. code-block:: console
8686

tools/create_release_notes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def create_release_notes():
5050
is_last = idx == len(releases) - 1
5151

5252
if release.is_latest:
53-
fptr.write(".. _latest_release:\n\n")
53+
fptr.write(".. _release:latest:\n\n")
54+
55+
fptr.write(f".. _release:{release.name}:\n\n")
5456

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

69-
fptr.write("\n\n")
70-
71-
fptr.write(f".. include:: {relpath(release.file_name, source_path)!s}\n")
71+
fptr.write(f"\n\n.. include:: {relpath(release.file_name, source_path)!s}\n\n")
7272

7373

7474
class Release(object):

0 commit comments

Comments
 (0)