Skip to content

Commit

Permalink
feat(custom.css): Use light blue text for banner hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Sep 9, 2024
1 parent 8c5f9c0 commit 0465989
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/rocm_docs/rocm_docs_theme/static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,7 @@ a#ot-sdk-btn {
:not(p) img {
margin-bottom: 1rem;
}

#rocm-banner {
color: #80dfff;
}
6 changes: 3 additions & 3 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ def _update_banner(

announcement_info: str
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."
announcement_info = "This page contains changes for a test release of ROCm. Read the <a id='rocm-banner' 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 not the latest version of ROCm documentation. See <a href='https://rocm.docs.amd.com/en/latest/'>ROCm documentation</a> for the latest version."
announcement_info = "This is not the latest version of ROCm documentation. See <a id='rocm-banner' href='https://rocm.docs.amd.com/en/latest/'>ROCm documentation</a> for the latest version."
elif version_type == util.VersionType.DEVELOPMENT:
announcement_info = "This page contains proposed changes for a future 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."
announcement_info = "This page contains proposed changes for a future release of ROCm. Read the <a id='rocm-banner' href='https://rocm.docs.amd.com/en/latest/'>latest Linux release of ROCm documentation</a> for your production environments."

theme_opts.setdefault("announcement", announcement_info)

Expand Down

0 comments on commit 0465989

Please sign in to comment.