From 1cd2f4578bd18d7fc0c229f0d0e3c00739b17dee Mon Sep 17 00:00:00 2001 From: Peter Park Date: Mon, 25 Nov 2024 16:25:50 -0500 Subject: [PATCH] fix(js): fix renameVersionLinks.js --- src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js b/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js index 93bfef49..d255b38a 100644 --- a/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js +++ b/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js @@ -1,5 +1,5 @@ function renameVersionLinks() { - $('div.rst-other-versions dl:first-child a').each( function () { + $('readthedocs-flyout.versions dd>a').each( function () { const text = $(this).text(); const versionRegEx = /^.*((?:[0-9]+\.){2}[0-9]+).*$/g; if (versionRegEx.test(text)) { @@ -23,5 +23,5 @@ function waitForSelector(selector, callback, backoff=100, max=15) { } $(document).ready(() => { - waitForSelector('div.rst-versions', renameVersionLinks); + waitForSelector('readthedocs-flyout.versions', renameVersionLinks); })