Skip to content

Commit

Permalink
debugging version_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rmj3197 committed Nov 10, 2024
1 parent e655a29 commit 859b2ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/_static/js/version_warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ function warnOnLatestVersion() {
// The warning text and link is really specific to RTD hosting,
// so we can just check their global to determine version:
if (!window.READTHEDOCS_DATA || window.READTHEDOCS_DATA.version !== "latest") {
console.log(" This is entering True condition True");
return; // not latest, or not on RTD
}

var warning = document.createElement('div');
warning.setAttribute('class', 'admonition danger');
warning.innerHTML = "<p class='first admonition-title'>Note</p> " +
Expand Down

0 comments on commit 859b2ac

Please sign in to comment.