Skip to content

Commit

Permalink
feat(theme.py): Remove banner on latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Mar 19, 2024
1 parent 58cc3d8 commit 97b1c97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ def _update_banner(
) -> None:
if flavor != "rocm":
return

if version_type == util.VersionType.LATEST_RELEASE:
return

announcement_info: str
if version_type == util.VersionType.LATEST_RELEASE:
announcement_info = "The redirect from <a href='https://docs.amd.com'>docs.amd.com</a> to <a href='https://rocm.docs.amd.com/en/latest/'>rocm.docs.amd.com</a> will be removed in mid March. Please update any existing ROCm bookmarks or links that reference <a href='https://docs.amd.com'>docs.amd.com</a> to <a href='https://rocm.docs.amd.com/en/latest/'>rocm.docs.amd.com</a>."
elif version_type == util.VersionType.RELEASE_CANDIDATE:
if version_type == util.VersionType.RELEASE_CANDIDATE:
announcement_info = "This page contains changes for a test release of ROCm. Read the <a href='https://rocm.docs.amd.com/en/latest/'>latest Linux release of ROCm documentation</a> for your production environments."
elif version_type == util.VersionType.OLD_RELEASE:
announcement_info = "This is an old version of ROCm documentation. Read the <a href='https://rocm.docs.amd.com/en/latest/'>latest ROCm release documentation</a> to stay informed of all our developments."
Expand Down

0 comments on commit 97b1c97

Please sign in to comment.