Skip to content

Commit

Permalink
Merge pull request #9 from XraySpectroscopy/fix_docs
Browse files Browse the repository at this point in the history
fix the myhdf5 link
  • Loading branch information
woutdenolf authored Apr 24, 2024
2 parents ab42d37 + 2413536 commit 2e526a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_ext/myhdf5_inline_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def inject_dynamic_url_js(app, pagename, templatename, context, doctree):
<script>
document.addEventListener("DOMContentLoaded", function() {
var links = document.querySelectorAll("a.myhdf5");
var currentURL = encodeURIComponent(window.location.href + "/_static");
var currentURL = encodeURIComponent(window.location.href + "_static/");
links.forEach(function(link) {
var href = link.getAttribute("href");
link.setAttribute("href", href.replace("placeholder", currentURL));
Expand Down

0 comments on commit 2e526a3

Please sign in to comment.