Skip to content

Commit

Permalink
allow dynamic mount points for shmarql location in mkdocs codeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
epoz committed Jan 28, 2025
1 parent 30ca20b commit 6ec22bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/javascripts/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () {
var xLink = document.createElement("a");
xLink.style.display = "block";
xLink.title = "Execute Query";
xLink.href = "/sparql?query=" + encodeURIComponent(thecode.innerText);
xLink.href = "../shmarql/?query=" + encodeURIComponent(thecode.innerText);
xLink.innerHTML = fa_aeroplane;

thepre.appendChild(xLink);
Expand All @@ -16,7 +16,7 @@ document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll(".language-shmarql").forEach(function (block) {
thecode = block.querySelector("code");
fetch(
"/shmarql/fragments/sparql?query=" +
"../shmarql/fragments/sparql?query=" +
encodeURIComponent(thecode.innerText),
{
method: "POST",
Expand Down

0 comments on commit 6ec22bb

Please sign in to comment.