Skip to content

Commit e598c9a

Browse files
authored
FIX: announcement latest version (#98)
1 parent 8bf5b3d commit e598c9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/version_mapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def update_switch_version_file(
9494
json.dump(new_content, switcher_file, indent=4)
9595

9696
# Use the latest stable verion for formatting the announcement
97-
announcement_link = f"<a href='{cname}/release/{version}'>{version}</a>"
97+
announcement_link = (
98+
f"<a href='{cname}/release/{latest_stable_version}'>{latest_stable_version}</a>"
99+
)
98100
announcement_content = f"<p>You are not viewing the most recent version of this documentation. The latest stable release is {announcement_link}.</p>"
99101

100102
# Include the announcement in all available release folders. Note that

0 commit comments

Comments
 (0)