|
|
|
@ -1,15 +1,15 @@ |
|
|
|
// Generated by Documenter.jl
|
|
|
|
// Generated by Documenter.jl
|
|
|
|
requirejs.config({ |
|
|
|
requirejs.config({ |
|
|
|
paths: { |
|
|
|
paths: { |
|
|
|
'highlight-julia': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/julia.min', |
|
|
|
'highlight-julia': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/julia.min', |
|
|
|
'headroom': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/headroom.min', |
|
|
|
'headroom': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/headroom.min', |
|
|
|
'jqueryui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min', |
|
|
|
'jqueryui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min', |
|
|
|
'katex-auto-render': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/contrib/auto-render.min', |
|
|
|
'katex-auto-render': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/contrib/auto-render.min', |
|
|
|
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min', |
|
|
|
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min', |
|
|
|
'headroom-jquery': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/jQuery.headroom.min', |
|
|
|
'headroom-jquery': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/jQuery.headroom.min', |
|
|
|
'katex': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min', |
|
|
|
'katex': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/katex.min', |
|
|
|
'highlight': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min', |
|
|
|
'highlight': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min', |
|
|
|
'highlight-julia-repl': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/julia-repl.min', |
|
|
|
'highlight-julia-repl': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/languages/julia-repl.min', |
|
|
|
}, |
|
|
|
}, |
|
|
|
shim: { |
|
|
|
shim: { |
|
|
|
"highlight-julia": { |
|
|
|
"highlight-julia": { |
|
|
|
@ -70,13 +70,70 @@ $(document).ready(function() { |
|
|
|
hljs.highlightAll(); |
|
|
|
hljs.highlightAll(); |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
require(['jquery'], function($) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var isExpanded = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on("click", ".docstring header", function () { |
|
|
|
|
|
|
|
let articleToggleTitle = "Expand docstring"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($(this).siblings("section").is(":visible")) { |
|
|
|
|
|
|
|
$(this) |
|
|
|
|
|
|
|
.find(".docstring-article-toggle-button") |
|
|
|
|
|
|
|
.removeClass("fa-chevron-down") |
|
|
|
|
|
|
|
.addClass("fa-chevron-right"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$(this) |
|
|
|
|
|
|
|
.find(".docstring-article-toggle-button") |
|
|
|
|
|
|
|
.removeClass("fa-chevron-right") |
|
|
|
|
|
|
|
.addClass("fa-chevron-down"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
articleToggleTitle = "Collapse docstring"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).find(".docstring-article-toggle-button").prop("title", articleToggleTitle); |
|
|
|
|
|
|
|
$(this).siblings("section").slideToggle(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on("click", ".docs-article-toggle-button", function () { |
|
|
|
|
|
|
|
let articleToggleTitle = "Expand docstring"; |
|
|
|
|
|
|
|
let navArticleToggleTitle = "Expand all docstrings"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isExpanded) { |
|
|
|
|
|
|
|
$(this).removeClass("fa-chevron-up").addClass("fa-chevron-down"); |
|
|
|
|
|
|
|
$(".docstring-article-toggle-button") |
|
|
|
|
|
|
|
.removeClass("fa-chevron-down") |
|
|
|
|
|
|
|
.addClass("fa-chevron-right"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isExpanded = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".docstring section").slideUp(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$(this).removeClass("fa-chevron-down").addClass("fa-chevron-up"); |
|
|
|
|
|
|
|
$(".docstring-article-toggle-button") |
|
|
|
|
|
|
|
.removeClass("fa-chevron-right") |
|
|
|
|
|
|
|
.addClass("fa-chevron-down"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isExpanded = true; |
|
|
|
|
|
|
|
articleToggleTitle = "Collapse docstring"; |
|
|
|
|
|
|
|
navArticleToggleTitle = "Collapse all docstrings"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".docstring section").slideDown(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(this).prop("title", navArticleToggleTitle); |
|
|
|
|
|
|
|
$(".docstring-article-toggle-button").prop("title", articleToggleTitle); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
require([], function() { |
|
|
|
require([], function() { |
|
|
|
function addCopyButtonCallbacks() { |
|
|
|
function addCopyButtonCallbacks() { |
|
|
|
for (const el of document.getElementsByTagName("pre")) { |
|
|
|
for (const el of document.getElementsByTagName("pre")) { |
|
|
|
const button = document.createElement("button"); |
|
|
|
const button = document.createElement("button"); |
|
|
|
button.classList.add("copy-button", "fas", "fa-copy"); |
|
|
|
button.classList.add("copy-button", "fa-solid", "fa-copy"); |
|
|
|
button.setAttribute("aria-label", "Copy this code block"); |
|
|
|
button.setAttribute("aria-label", "Copy this code block"); |
|
|
|
button.setAttribute("title", "Copy"); |
|
|
|
button.setAttribute("title", "Copy"); |
|
|
|
|
|
|
|
|
|
|
|
@ -88,7 +145,7 @@ function addCopyButtonCallbacks() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const failure = function () { |
|
|
|
const failure = function () { |
|
|
|
button.classList.add("error", "fa-times"); |
|
|
|
button.classList.add("error", "fa-xmark"); |
|
|
|
button.classList.remove("fa-copy"); |
|
|
|
button.classList.remove("fa-copy"); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -97,7 +154,7 @@ function addCopyButtonCallbacks() { |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(function () { |
|
|
|
setTimeout(function () { |
|
|
|
button.classList.add("fa-copy"); |
|
|
|
button.classList.add("fa-copy"); |
|
|
|
button.classList.remove("success", "fa-check", "fa-times"); |
|
|
|
button.classList.remove("success", "fa-check", "fa-xmark"); |
|
|
|
}, 5000); |
|
|
|
}, 5000); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -167,6 +224,28 @@ $(document).ready(function() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
require([], function() { |
|
|
|
|
|
|
|
let searchbox = document.querySelector("#documenter-search-query"); |
|
|
|
|
|
|
|
let sidebar = document.querySelector(".docs-sidebar"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener("keydown", (event) => { |
|
|
|
|
|
|
|
if ((event.ctrlKey || event.metaKey) && event.key === "/") { |
|
|
|
|
|
|
|
if (!sidebar.classList.contains("visible")) { |
|
|
|
|
|
|
|
sidebar.classList.add("visible"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
searchbox.focus(); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} else if (event.key === "Escape") { |
|
|
|
|
|
|
|
if (sidebar.classList.contains("visible")) { |
|
|
|
|
|
|
|
sidebar.classList.remove("visible"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
searchbox.blur(); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
require(['jquery'], function($) { |
|
|
|
require(['jquery'], function($) { |
|
|
|
@ -310,7 +389,7 @@ $(document).ready(function() { |
|
|
|
var existing_versions = version_selector_select.children("option"); |
|
|
|
var existing_versions = version_selector_select.children("option"); |
|
|
|
var existing_versions_texts = existing_versions.map(function(i,x){return x.text}); |
|
|
|
var existing_versions_texts = existing_versions.map(function(i,x){return x.text}); |
|
|
|
DOC_VERSIONS.forEach(function(each) { |
|
|
|
DOC_VERSIONS.forEach(function(each) { |
|
|
|
var version_url = documenterBaseURL + "/../" + each; |
|
|
|
var version_url = documenterBaseURL + "/../" + each + "/"; |
|
|
|
var existing_id = $.inArray(each, existing_versions_texts); |
|
|
|
var existing_id = $.inArray(each, existing_versions_texts); |
|
|
|
// if not already in the version selector, add it as a new option,
|
|
|
|
// if not already in the version selector, add it as a new option,
|
|
|
|
// otherwise update the old option with the URL and enable it
|
|
|
|
// otherwise update the old option with the URL and enable it
|
|
|
|
|