Skip to content

Commit

Permalink
Merge pull request #662 from samjwu/banner
Browse files Browse the repository at this point in the history
feat(theme.py): Update banner announcement about docs.amd.com redirect
  • Loading branch information
samjwu committed Feb 22, 2024
2 parents 59b8b91 + 768b374 commit 0e983e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ def _update_banner(
if flavor != "rocm":
return

if version_type == util.VersionType.LATEST_RELEASE:
return

announcement_info: str
if version_type == util.VersionType.RELEASE_CANDIDATE:
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:
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 0e983e7

Please sign in to comment.