Skip to content

Commit

Permalink
Fixes url
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Apr 17, 2024
1 parent 3b43799 commit 4dde57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/_templates/versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<script type="text/javascript">
$.get("../../../versions/versions.json", function(data) {
let versionElement = $("#versions");
let baseUriRegex = /(.*\/cime\/versions).*/g;
let baseUriRegex = /(.*\/cime).*/g;
let baseUri = baseUriRegex.exec(document.baseURI);

Object.keys(data).forEach(function(key) {
let value = data[key];

let item = `<dd><a href="${baseUri}/${key}/html/">${value}</a></dd>`
let item = `<dd><a href="${baseUri}/versions/${key}/html/">${value}</a></dd>`

versionElement.append(item);
});
Expand Down

0 comments on commit 4dde57a

Please sign in to comment.