diff --git a/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js b/src/rocm_docs/rocm_docs_theme/static/renameVersionLinks.js index 93bfef49..f7aa633e 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 dl.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 dl.versions', renameVersionLinks); })