From 97b1c97b7fae4cf5c731e5c2c042edaf712cf4dc Mon Sep 17 00:00:00 2001 From: Sam Wu Date: Tue, 19 Mar 2024 15:38:01 -0600 Subject: [PATCH 1/2] feat(theme.py): Remove banner on latest release --- src/rocm_docs/theme.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rocm_docs/theme.py b/src/rocm_docs/theme.py index 72ce4853..a7095054 100644 --- a/src/rocm_docs/theme.py +++ b/src/rocm_docs/theme.py @@ -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 docs.amd.com to rocm.docs.amd.com will be removed in mid March. Please update any existing ROCm bookmarks or links that reference docs.amd.com to rocm.docs.amd.com." - 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 latest Linux release of ROCm documentation for your production environments." elif version_type == util.VersionType.OLD_RELEASE: announcement_info = "This is an old version of ROCm documentation. Read the latest ROCm release documentation to stay informed of all our developments." From 0730e1c5eee4633de83df0951806e313640156ea Mon Sep 17 00:00:00 2001 From: Sam Wu Date: Tue, 19 Mar 2024 15:46:00 -0600 Subject: [PATCH 2/2] style(theme.py): Remove empty whitespace for ruff linting --- src/rocm_docs/theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rocm_docs/theme.py b/src/rocm_docs/theme.py index a7095054..6c259810 100644 --- a/src/rocm_docs/theme.py +++ b/src/rocm_docs/theme.py @@ -44,7 +44,7 @@ def _update_banner( ) -> None: if flavor != "rocm": return - + if version_type == util.VersionType.LATEST_RELEASE: return