mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
Add custom version history (#5551)
This commit is contained in:
16
docs/sphinx/static/version-history-link.js
Normal file
16
docs/sphinx/static/version-history-link.js
Normal 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";
|
||||
});
|
||||
Reference in New Issue
Block a user