Add custom version history (#5551)

This commit is contained in:
peterjunpark
2025-10-20 18:11:38 -04:00
committed by GitHub
parent 70acbcb27a
commit c965b7e98e
3 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
function ready(callback) {
if (document.readyState !== "loading") {
callback();
return;
}
document.addEventListener("DOMContentLoaded", callback);
}
ready(() => {
const versionListLink = document.querySelector(
"a.header-all-versions[href='https://rocm.docs.amd.com/en/latest/release/versions.html']",
);
versionListLink.textContent = "Preview versions";
versionListLink.href =
"https://rocm.docs.amd.com/en/docs-7.9.0/about/versions.html";
});