Browse Source

build based on a86869f

gh-pages
Documenter.jl 2 weeks ago
parent
commit
8896fd4713
  1. 2
      dev/.documenter-siteinfo.json
  2. 554
      dev/assets/documenter.js
  3. 2
      dev/assets/themes/catppuccin-frappe.css
  4. 2
      dev/assets/themes/catppuccin-latte.css
  5. 2
      dev/assets/themes/catppuccin-macchiato.css
  6. 2
      dev/assets/themes/catppuccin-mocha.css
  7. 4
      dev/assets/themes/documenter-dark.css
  8. 2
      dev/assets/themes/documenter-light.css
  9. 26
      dev/assets/warner.js
  10. 6
      dev/changelog/index.html
  11. 2
      dev/customprocessing/index.html
  12. 2
      dev/documenter/index.html
  13. 4
      dev/fileformat/index.html
  14. 117
      dev/generated/example.ipynb
  15. 64
      dev/generated/example/31f14fb6.svg
  16. 6
      dev/generated/example/index.html
  17. 2
      dev/generated/name/index.html
  18. 6
      dev/generated/notebook.ipynb
  19. 2
      dev/index.html
  20. BIN
      dev/objects.inv
  21. 6
      dev/outputformats/index.html
  22. 2
      dev/pipeline/index.html
  23. 2
      dev/reference/index.html
  24. 2
      dev/search_index.js
  25. 1
      dev/siteinfo.js
  26. 4
      dev/tips/index.html

2
dev/.documenter-siteinfo.json

@ -1 +1 @@ @@ -1 +1 @@
{"documenter":{"julia_version":"1.11.6","generation_timestamp":"2025-09-02T08:16:39","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.12.1","generation_timestamp":"2025-11-19T18:04:13","documenter_version":"1.16.0"}}

554
dev/assets/documenter.js

@ -33,8 +33,7 @@ requirejs.config({ @@ -33,8 +33,7 @@ requirejs.config({
"highlight"
]
}
}
});
}});
////////////////////////////////////////////////////////////////////////////////
require(['jquery', 'katex', 'katex-auto-render'], function($, katex, renderMathInElement) {
$(document).ready(function() {
@ -59,7 +58,6 @@ $(document).ready(function() { @@ -59,7 +58,6 @@ $(document).ready(function() {
}
]
}
);
})
@ -74,82 +72,65 @@ $(document).ready(function() { @@ -74,82 +72,65 @@ $(document).ready(function() {
////////////////////////////////////////////////////////////////////////////////
require(['jquery'], function($) {
let timer = 0;
var isExpanded = true;
$(document).on(
"click",
".docstring .docstring-article-toggle-button",
function () {
let articleToggleTitle = "Expand docstring";
const parent = $(this).parent();
debounce(() => {
if (parent.siblings("section").is(":visible")) {
parent
.find("a.docstring-article-toggle-button")
.removeClass("fa-chevron-down")
.addClass("fa-chevron-right");
} else {
parent
.find("a.docstring-article-toggle-button")
.removeClass("fa-chevron-right")
.addClass("fa-chevron-down");
///////////////////////////////////
articleToggleTitle = "Collapse docstring";
// to open and scroll to
function openTarget() {
const hash = decodeURIComponent(location.hash.substring(1));
if (hash) {
const target = document.getElementById(hash);
if (target) {
const details = target.closest("details");
if (details) details.open = true;
}
parent
.children(".docstring-article-toggle-button")
.prop("title", articleToggleTitle);
parent.siblings("section").slideToggle();
});
}
);
}
openTarget(); // onload
window.addEventListener("hashchange", openTarget);
window.addEventListener("load", openTarget);
$(document).on("click", ".docs-article-toggle-button", function (event) {
let articleToggleTitle = "Expand docstring";
let navArticleToggleTitle = "Expand all docstrings";
let animationSpeed = event.noToggleAnimation ? 0 : 400;
//////////////////////////////////////
// for the global expand/collapse butter
debounce(() => {
if (isExpanded) {
$(this).removeClass("fa-chevron-up").addClass("fa-chevron-down");
$("a.docstring-article-toggle-button")
.removeClass("fa-chevron-down")
.addClass("fa-chevron-right");
function accordion() {
document.body
.querySelectorAll("details")
.forEach((e) => e.setAttribute("open", "true"));
}
isExpanded = false;
function noccordion() {
document.body
.querySelectorAll("details")
.forEach((e) => e.removeAttribute("open"));
}
$(".docstring section").slideUp(animationSpeed);
} else {
$(this).removeClass("fa-chevron-down").addClass("fa-chevron-up");
$("a.docstring-article-toggle-button")
.removeClass("fa-chevron-right")
.addClass("fa-chevron-down");
function expandAll() {
let me = document.getElementById("documenter-article-toggle-button");
me.setAttribute("open", "true");
$(me).removeClass("fa-chevron-down").addClass("fa-chevron-up");
$(me).prop("title", "Collapse all docstrings");
accordion();
}
isExpanded = true;
articleToggleTitle = "Collapse docstring";
navArticleToggleTitle = "Collapse all docstrings";
function collapseAll() {
let me = document.getElementById("documenter-article-toggle-button");
me.removeAttribute("open");
$(me).removeClass("fa-chevron-up").addClass("fa-chevron-down");
$(me).prop("title", "Expand all docstrings");
noccordion();
}
$(".docstring section").slideDown(animationSpeed);
$(document).on("click", ".docs-article-toggle-button", function () {
var isExpanded = this.hasAttribute("open");
if (isExpanded) {
collapseAll();
isExpanded = false;
} else {
expandAll();
isExpanded = true;
}
$(this).prop("title", navArticleToggleTitle);
$(".docstring-article-toggle-button").prop("title", articleToggleTitle);
});
});
function debounce(callback, timeout = 300) {
if (Date.now() - timer > timeout) {
callback();
}
clearTimeout(timer);
timer = Date.now();
}
})
////////////////////////////////////////////////////////////////////////////////
require([], function() {
@ -214,6 +195,57 @@ if (document.readyState === "loading") { @@ -214,6 +195,57 @@ if (document.readyState === "loading") {
addCopyButtonCallbacks();
}
})
////////////////////////////////////////////////////////////////////////////////
require(['jquery'], function($) {
$(document).ready(function () {
$(".footnote-ref").hover(
function () {
var id = $(this).attr("href");
var footnoteContent = $(id).clone().find("a").remove().end().html();
var $preview = $(this).next(".footnote-preview");
$preview.html(footnoteContent).css({
display: "block",
left: "50%",
transform: "translateX(-50%)",
});
repositionPreview($preview, $(this));
},
function () {
var $preview = $(this).next(".footnote-preview");
$preview.css({
display: "none",
left: "",
transform: "",
"--arrow-left": "",
});
},
);
function repositionPreview($preview, $ref) {
var previewRect = $preview[0].getBoundingClientRect();
var refRect = $ref[0].getBoundingClientRect();
var viewportWidth = $(window).width();
if (previewRect.right > viewportWidth) {
var excessRight = previewRect.right - viewportWidth;
$preview.css("left", `calc(50% - ${excessRight + 10}px)`);
} else if (previewRect.left < 0) {
var excessLeft = 0 - previewRect.left;
$preview.css("left", `calc(50% + ${excessLeft + 10}px)`);
}
var newPreviewRect = $preview[0].getBoundingClientRect();
var arrowLeft = refRect.left + refRect.width / 2 - newPreviewRect.left;
$preview.css("--arrow-left", arrowLeft + "px");
}
});
})
////////////////////////////////////////////////////////////////////////////////
require(['jquery', 'headroom', 'headroom-jquery'], function($, Headroom) {
@ -233,11 +265,9 @@ require(['jquery'], function($) { @@ -233,11 +265,9 @@ require(['jquery'], function($) {
$(document).ready(function () {
let meta = $("div[data-docstringscollapsed]").data();
if (meta?.docstringscollapsed) {
if (!meta?.docstringscollapsed) {
$("#documenter-article-toggle-button").trigger({
type: "click",
noToggleAnimation: true,
});
}
});
@ -312,7 +342,7 @@ update_search @@ -312,7 +342,7 @@ update_search
function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
importScripts(
"https://cdn.jsdelivr.net/npm/minisearch@6.1.0/dist/umd/index.min.js"
"https://cdn.jsdelivr.net/npm/minisearch@6.1.0/dist/umd/index.min.js",
);
let data = documenterSearchIndex.map((x, key) => {
@ -437,10 +467,10 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -437,10 +467,10 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
processTerm: (term) => {
let word = stopWords.has(term) ? null : term;
if (word) {
// custom trimmer that doesn't strip @ and !, which are used in julia macro and function names
// custom trimmer that doesn't strip special characters `@!+-*/^&|%<>=:.` which are used in julia macro and function names.
word = word
.replace(/^[^a-zA-Z0-9@!]+/, "")
.replace(/[^a-zA-Z0-9@!]+$/, "");
.replace(/^[^a-zA-Z0-9@!+\-/*^&%|<>._=:]+/, "")
.replace(/[^a-zA-Z0-9@!+\-/*^&%|<>._=:]+$/, "");
word = word.toLowerCase();
}
@ -449,7 +479,52 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -449,7 +479,52 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
},
// add . as a separator, because otherwise "title": "Documenter.Anchors.add!", would not
// find anything if searching for "add!", only for the entire qualification
tokenize: (string) => string.split(/[\s\-\.]+/),
tokenize: (string) => {
const tokens = [];
let remaining = string;
// julia specific patterns
const patterns = [
// Module qualified names (e.g., Base.sort, Module.Submodule. function)
/\b[A-Za-z0-9_1*(?:\.[A-Z][A-Za-z0-9_1*)*\.[a-z_][A-Za-z0-9_!]*\b/g,
// Macro calls (e.g., @time, @async)
/@[A-Za-z0-9_]*/g,
// Type parameters (e.g., Array{T,N}, Vector{Int})
/\b[A-Za-z0-9_]*\{[^}]+\}/g,
// Function names with module qualification (e.g., Base.+, Base.:^)
/\b[A-Za-z0-9_]*\.:[A-Za-z0-9_!+\-*/^&|%<>=.]+/g,
// Operators as complete tokens (e.g., !=, aã, ||, ^, .=, →)
/[!<>=+\-*/^&|%:.]+/g,
// Function signatures with type annotations (e.g., f(x::Int))
/\b[A-Za-z0-9_!]*\([^)]*::[^)]*\)/g,
// Numbers (integers, floats, scientific notation)
/\b\d+(?:\.\d+)? (?:[eE][+-]?\d+)?\b/g,
];
// apply patterns in order of specificity
for (const pattern of patterns) {
pattern.lastIndex = 0; //reset regex state
let match;
while ((match = pattern.exec(remaining)) != null) {
const token = match[0].trim();
if (token && !tokens.includes(token)) {
tokens.push(token);
}
}
}
// splitting the content if something remains
const basicTokens = remaining
.split(/[\s\-,;()[\]{}]+/)
.filter((t) => t.trim());
for (const token of basicTokens) {
if (token && !tokens.includes(token)) {
tokens.push(token);
}
}
return tokens.filter((token) => token.length > 0);
},
// options which will be applied during the search
searchOptions: {
prefix: true,
@ -523,8 +598,8 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -523,8 +598,8 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
Math.max(textindex.index - 100, 0),
Math.min(
textindex.index + querystring.length + 100,
result.text.length
)
result.text.length,
),
)
: ""; // cut-off text before and after from the match
@ -534,7 +609,7 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -534,7 +609,7 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
? "..." +
text.replace(
new RegExp(`${escape(searchstring)}`, "i"), // For first occurrence
'<span class="search-result-highlight py-1">$&</span>'
'<span class="search-result-highlight py-1">$&</span>',
) +
"..."
: ""; // highlights the match
@ -547,7 +622,7 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -547,7 +622,7 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
// We encode the full url to escape some special characters which can lead to broken links
let result_div = `
<a href="${encodeURI(
documenterBaseURL + "/" + result.location
documenterBaseURL + "/" + result.location,
)}" class="search-result-link w-100 is-flex is-flex-direction-column gap-2 px-4 py-2">
<div class="w-100 is-flex is-flex-wrap-wrap is-justify-content-space-between is-align-items-flex-start">
<div class="search-result-title has-text-weight-bold ${
@ -572,6 +647,35 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -572,6 +647,35 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
return result_div;
}
function calculateCustomScore(result, query) {
const titleLower = result.title.toLowerCase();
const queryLower = query.toLowerCase();
// Tier 1 : Exact title match
if (titleLower == queryLower) {
return 10000 + result.score;
}
// Tier 2 : Title contains exact query
if (titleLower.includes(queryLower)) {
const position = titleLower.indexOf(queryLower);
// prefer matches at the beginning
return 5000 + result.score - position * 10;
}
// Tier 3 : All query words in title
const queryWords = queryLower.trim().split(/\s+/);
const titleWords = titleLower.trim().split(/\s+/);
const allWordsInTitle = queryWords.every((qw) =>
titleWords.some((tw) => tw.includes(qw)),
);
if (allWordsInTitle) {
return 2000 + result.score;
}
return result.score;
}
self.onmessage = function (e) {
let query = e.data;
let results = index.search(query, {
@ -582,6 +686,15 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -582,6 +686,15 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
combineWith: "AND",
});
// calculate custom scores for all results
results = results.map((result) => ({
...result,
customScore: calculateCustomScore(result, query),
}));
// sort by custom score in descending order
results.sort((a, b) => b.customScore - a.customScore);
// Pre-filter to deduplicate and limit to 200 per category to the extent
// possible without knowing what the filters are.
let filtered_results = [];
@ -612,11 +725,14 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) { @@ -612,11 +725,14 @@ function worker_function(documenterSearchIndex, documenterBaseURL, filters) {
};
}
// `worker = Threads.@spawn worker_function(documenterSearchIndex)`, but in JavaScript!
const filters = [
/////// SEARCH MAIN ///////
function runSearchMainCode() {
// `worker = Threads.@spawn worker_function(documenterSearchIndex)`, but in JavaScript!
const filters = [
...new Set(documenterSearchIndex["docs"].map((x) => x.category)),
];
const worker_str =
];
const worker_str =
"(" +
worker_function.toString() +
")(" +
@ -626,39 +742,74 @@ const worker_str = @@ -626,39 +742,74 @@ const worker_str =
"," +
JSON.stringify(filters) +
")";
const worker_blob = new Blob([worker_str], { type: "text/javascript" });
const worker = new Worker(URL.createObjectURL(worker_blob));
const worker_blob = new Blob([worker_str], { type: "text/javascript" });
const worker = new Worker(URL.createObjectURL(worker_blob));
/////// SEARCH MAIN ///////
// Whether the worker is currently handling a search. This is a boolean
// as the worker only ever handles 1 or 0 searches at a time.
var worker_is_running = false;
// The last search text that was sent to the worker. This is used to determine
// if the worker should be launched again when it reports back results.
var last_search_text = "";
// The results of the last search. This, in combination with the state of the filters
// in the DOM, is used compute the results to display on calls to update_search.
var unfiltered_results = [];
// Which filter is currently selected
var selected_filter = "";
document.addEventListener("reset-filter", function () {
selected_filter = "";
update_search();
});
// Whether the worker is currently handling a search. This is a boolean
// as the worker only ever handles 1 or 0 searches at a time.
var worker_is_running = false;
//update the url with search query
function updateSearchURL(query) {
const url = new URL(window.location);
// The last search text that was sent to the worker. This is used to determine
// if the worker should be launched again when it reports back results.
var last_search_text = "";
if (query && query.trim() !== "") {
url.searchParams.set("q", query);
} else {
// remove the 'q' param if it exists
if (url.searchParams.has("q")) {
url.searchParams.delete("q");
}
}
// The results of the last search. This, in combination with the state of the filters
// in the DOM, is used compute the results to display on calls to update_search.
var unfiltered_results = [];
// Add or remove the filter parameter based on selected_filter
if (selected_filter && selected_filter.trim() !== "") {
url.searchParams.set("filter", selected_filter);
} else {
// remove the 'filter' param if it exists
if (url.searchParams.has("filter")) {
url.searchParams.delete("filter");
}
}
// Which filter is currently selected
var selected_filter = "";
// Only update history if there are parameters, otherwise use the base URL
if (url.search) {
window.history.replaceState({}, "", url);
} else {
window.history.replaceState({}, "", url.pathname + url.hash);
}
}
$(document).on("input", ".documenter-search-input", function (event) {
$(document).on("input", ".documenter-search-input", function (event) {
if (!worker_is_running) {
launch_search();
}
});
});
function launch_search() {
function launch_search() {
worker_is_running = true;
last_search_text = $(".documenter-search-input").val();
updateSearchURL(last_search_text);
worker.postMessage(last_search_text);
}
}
worker.onmessage = function (e) {
worker.onmessage = function (e) {
if (last_search_text !== $(".documenter-search-input").val()) {
launch_search();
} else {
@ -667,9 +818,12 @@ worker.onmessage = function (e) { @@ -667,9 +818,12 @@ worker.onmessage = function (e) {
unfiltered_results = e.data;
update_search();
};
};
$(document).on("click", ".search-filter", function () {
let search_input = $(".documenter-search-input");
let cursor_position = search_input[0].selectionStart;
$(document).on("click", ".search-filter", function () {
if ($(this).hasClass("search-filter-selected")) {
selected_filter = "";
} else {
@ -678,13 +832,17 @@ $(document).on("click", ".search-filter", function () { @@ -678,13 +832,17 @@ $(document).on("click", ".search-filter", function () {
// This updates search results and toggles classes for UI:
update_search();
});
/**
search_input.focus();
search_input.setSelectionRange(cursor_position, cursor_position);
});
/**
* Make/Update the search component
*/
function update_search() {
function update_search() {
let querystring = $(".documenter-search-input").val();
updateSearchURL(querystring);
if (querystring.trim()) {
if (selected_filter == "") {
@ -757,14 +915,32 @@ function update_search() { @@ -757,14 +915,32 @@ function update_search() {
<div class="has-text-centered my-5 py-5">Type something to get started!</div>
`);
}
}
}
//url param checking
function checkURLForSearch() {
const urlParams = new URLSearchParams(window.location.search);
const searchQuery = urlParams.get("q");
const filterParam = urlParams.get("filter");
// Set the selected filter if present in URL
if (filterParam) {
selected_filter = filterParam.toLowerCase();
}
// Trigger input event if there's a search query to perform the search
if (searchQuery) {
$(".documenter-search-input").val(searchQuery).trigger("input");
}
}
setTimeout(checkURLForSearch, 100);
/**
/**
* Make the modal filter html
*
* @returns string
*/
function make_modal_body_filters() {
function make_modal_body_filters() {
let str = filters
.map((val) => {
if (selected_filter == val.toLowerCase()) {
@ -780,8 +956,28 @@ function make_modal_body_filters() { @@ -780,8 +956,28 @@ function make_modal_body_filters() {
<span class="is-size-6">Filters:</span>
${str}
</div>`;
}
}
function waitUntilSearchIndexAvailable() {
// It is possible that the documenter.js script runs before the page
// has finished loading and documenterSearchIndex gets defined.
// So we need to wait until the search index actually loads before setting
// up all the search-related stuff.
if (
typeof documenterSearchIndex !== "undefined" &&
typeof $ !== "undefined"
) {
runSearchMainCode();
} else {
console.warn("Search Index or jQuery not available, waiting");
setTimeout(waitUntilSearchIndexAvailable, 100);
}
}
// The actual entry point to the search code
waitUntilSearchIndexAvailable();
})
////////////////////////////////////////////////////////////////////////////////
require(['jquery'], function($) {
@ -812,8 +1008,9 @@ $(document).ready(function () { @@ -812,8 +1008,9 @@ $(document).ready(function () {
<div class="field mb-0 w-100">
<p class="control has-icons-right">
<input class="input documenter-search-input" type="text" placeholder="Search" />
<span class="icon is-small is-right has-text-primary-dark">
<i class="fas fa-magnifying-glass"></i>
<span class="icon is-small is-right has-text-primary-dark gap-2">
<i class="fas fa-link link-icon is-clickable"></i>
<i class="fas fa-magnifying-glass mr-4"></i>
</span>
</p>
</div>
@ -828,12 +1025,21 @@ $(document).ready(function () { @@ -828,12 +1025,21 @@ $(document).ready(function () {
`;
let search_modal_footer = `
<footer class="modal-card-foot">
<footer class="modal-card-foot is-flex is-justify-content-space-between is-align-items-center">
<div class="is-flex gap-3 is-flex-wrap-wrap">
<span>
<kbd class="search-modal-key-hints">Ctrl</kbd> +
<kbd class="search-modal-key-hints">/</kbd> to search
</span>
<span class="ml-3"> <kbd class="search-modal-key-hints">esc</kbd> to close </span>
<span> <kbd class="search-modal-key-hints">esc</kbd> to close </span>
</div>
<div class="is-flex gap-3 is-flex-wrap-wrap">
<span>
<kbd class="search-modal-key-hints"></kbd>
<kbd class="search-modal-key-hints"></kbd> to navigate
</span>
<span> <kbd class="search-modal-key-hints">Enter</kbd> to select </span>
</div>
</footer>
`;
@ -849,9 +1055,22 @@ $(document).ready(function () { @@ -849,9 +1055,22 @@ $(document).ready(function () {
${search_modal_footer}
</div>
</div>
`
`,
);
function checkURLForSearch() {
const urlParams = new URLSearchParams(window.location.search);
const searchQuery = urlParams.get("q");
if (searchQuery) {
//only if there is a search query, open the modal
openModal();
}
}
//this function will be called whenever the page will load
checkURLForSearch();
document.querySelector(".docs-search-query").addEventListener("click", () => {
openModal();
});
@ -871,9 +1090,52 @@ $(document).ready(function () { @@ -871,9 +1090,52 @@ $(document).ready(function () {
openModal();
} else if (event.key === "Escape") {
closeModal();
} else if (
document.querySelector("#search-modal")?.classList.contains("is-active")
) {
const searchResults = document.querySelectorAll(".search-result-link");
if (event.key === "ArrowDown") {
event.preventDefault();
if (searchResults.length > 0) {
const currentFocused = document.activeElement;
const currentIndex =
Array.from(searchResults).indexOf(currentFocused);
const nextIndex =
currentIndex < searchResults.length - 1 ? currentIndex + 1 : 0;
searchResults[nextIndex].focus();
}
} else if (event.key === "ArrowUp") {
event.preventDefault();
if (searchResults.length > 0) {
const currentFocused = document.activeElement;
const currentIndex =
Array.from(searchResults).indexOf(currentFocused);
const prevIndex =
currentIndex > 0 ? currentIndex - 1 : searchResults.length - 1;
searchResults[prevIndex].focus();
}
}
}
});
//event listener for the link icon to copy the URL
$(document).on("click", ".link-icon", function () {
const currentUrl = window.location.href;
return false;
navigator.clipboard
.writeText(currentUrl)
.then(() => {
const $linkIcon = $(this);
$linkIcon.removeClass("fa-link").addClass("fa-check");
setTimeout(() => {
$linkIcon.removeClass("fa-check").addClass("fa-link");
}, 1000);
})
.catch((err) => {
console.error("Failed to copy URL: ", err);
});
});
// Functions to open and close a modal
@ -890,15 +1152,17 @@ $(document).ready(function () { @@ -890,15 +1152,17 @@ $(document).ready(function () {
<div class="has-text-centered my-5 py-5">Type something to get started!</div>
`;
$(".documenter-search-input").val("");
$(".search-modal-card-body").html(initial_search_body);
document.dispatchEvent(new CustomEvent("reset-filter"));
searchModal.classList.remove("is-active");
document.querySelector(".documenter-search-input").blur();
if (!$(".search-modal-card-body").hasClass("is-justify-content-center")) {
$(".search-modal-card-body").addClass("is-justify-content-center");
}
$(".documenter-search-input").val("");
$(".search-modal-card-body").html(initial_search_body);
}
document
@ -1016,7 +1280,55 @@ $(document).ready(function () { @@ -1016,7 +1280,55 @@ $(document).ready(function () {
target_href = version_selector_select
.children("option:selected")
.get(0).value;
// if the target is just "#", don't navigate (it's the current version)
if (target_href === "#") {
return;
}
// try to stay on the same page when switching versions
// get the current page path relative to the version root
var current_page = window.location.pathname;
// resolve the documenterBaseURL to an absolute path
// documenterBaseURL is a relative path (usually "."), so we need to resolve it
var base_url_absolute = new URL(documenterBaseURL, window.location.href)
.pathname;
if (!base_url_absolute.endsWith("/")) {
base_url_absolute = base_url_absolute + "/";
}
// extract the page path after the version directory
// e.g., if we're on /stable/man/guide.html, we want "man/guide.html"
var page_path = "";
if (current_page.startsWith(base_url_absolute)) {
page_path = current_page.substring(base_url_absolute.length);
}
// construct the target URL with the same page path
var target_url = target_href;
if (page_path && page_path !== "" && page_path !== "index.html") {
// remove trailing slash from target_href if present
if (target_url.endsWith("/")) {
target_url = target_url.slice(0, -1);
}
target_url = target_url + "/" + page_path;
}
// check if the target page exists, fallback to homepage if it doesn't
fetch(target_url, { method: "HEAD" })
.then(function (response) {
if (response.ok) {
window.location.href = target_url;
} else {
// page doesn't exist in the target version, go to homepage
window.location.href = target_href;
}
})
.catch(function (error) {
// network error or other failure - use homepage
window.location.href = target_href;
});
});
// add the current version to the selector based on siteinfo.js, but only if the selector is empty
@ -1027,7 +1339,7 @@ $(document).ready(function () { @@ -1027,7 +1339,7 @@ $(document).ready(function () {
var option = $(
"<option value='#' selected='selected'>" +
DOCUMENTER_CURRENT_VERSION +
"</option>"
"</option>",
);
version_selector_select.append(option);
}
@ -1044,7 +1356,7 @@ $(document).ready(function () { @@ -1044,7 +1356,7 @@ $(document).ready(function () {
// otherwise update the old option with the URL and enable it
if (existing_id == -1) {
var option = $(
"<option value='" + version_url + "'>" + each + "</option>"
"<option value='" + version_url + "'>" + each + "</option>",
);
version_selector_select.append(option);
} else {

2
dev/assets/themes/catppuccin-frappe.css

File diff suppressed because one or more lines are too long

2
dev/assets/themes/catppuccin-latte.css

File diff suppressed because one or more lines are too long

2
dev/assets/themes/catppuccin-macchiato.css

File diff suppressed because one or more lines are too long

2
dev/assets/themes/catppuccin-mocha.css

File diff suppressed because one or more lines are too long

4
dev/assets/themes/documenter-dark.css

File diff suppressed because one or more lines are too long

2
dev/assets/themes/documenter-light.css

File diff suppressed because one or more lines are too long

26
dev/assets/warner.js

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
function maybeAddWarning() {
// DOCUMENTER_NEWEST is defined in versions.js, DOCUMENTER_CURRENT_VERSION and DOCUMENTER_STABLE
// in siteinfo.js.
// If either of these are undefined something went horribly wrong, so we abort.
// in siteinfo.js. DOCUMENTER_IS_DEV_VERSION is optional and defined in siteinfo.js.
// If the required variables are undefined something went horribly wrong, so we abort.
if (
window.DOCUMENTER_NEWEST === undefined ||
window.DOCUMENTER_CURRENT_VERSION === undefined ||
@ -30,17 +30,33 @@ function maybeAddWarning() { @@ -30,17 +30,33 @@ function maybeAddWarning() {
}
const div = document.createElement("div");
div.classList.add("outdated-warning-overlay");
// Base class is added by default
div.classList.add("warning-overlay-base");
const closer = document.createElement("button");
closer.classList.add("outdated-warning-closer", "delete");
closer.addEventListener("click", function () {
document.body.removeChild(div);
});
const href = window.documenterBaseURL + "/../" + window.DOCUMENTER_STABLE;
div.innerHTML =
'This documentation is not for the latest stable release, but for either the development version or an older release.<br><a href="' +
// Determine if this is a development version or an older release
let warningMessage = "";
if (window.DOCUMENTER_IS_DEV_VERSION === true) {
div.classList.add("dev-warning-overlay");
warningMessage =
"This documentation is for the <strong>development version</strong> and may contain unstable or unreleased features.<br>";
} else {
div.classList.add("outdated-warning-overlay");
warningMessage =
"This documentation is for an <strong>older version</strong> that may be missing recent changes.<br>";
}
warningMessage +=
'<a href="' +
href +
'">Click here to go to the documentation for the latest stable release.</a>';
div.innerHTML = warningMessage;
div.appendChild(closer);
document.body.appendChild(div);
}

6
dev/changelog/index.html

File diff suppressed because one or more lines are too long

2
dev/customprocessing/index.html

@ -26,4 +26,4 @@ include(&quot;file2.jl&quot;)</code></pre><p>Let&#39;s say we have saved this fi @@ -26,4 +26,4 @@ include(&quot;file2.jl&quot;)</code></pre><p>Let&#39;s say we have saved this fi
end
return str
end</code></pre><p>(of course replace <code>included</code> with your respective files)</p><p>Finally, you simply pass this function to e.g. <a href="../outputformats/#Literate.markdown"><code>Literate.markdown</code></a> as</p><pre><code class="language-julia hljs">Literate.markdown(&quot;examples.jl&quot;, &quot;path/to/save/markdown&quot;;
name = &quot;markdown_file_name&quot;, preprocess = replace_includes)</code></pre><p>and you will see that in the final output file (here <code>markdown_file_name.md</code>) the <code>include</code> statements are replaced with the actual code to be included!</p><p>This approach is used for generating <a href="https://juliadynamics.github.io/TimeseriesPrediction.jl/latest/stexamples/">the examples</a> in the documentation of the <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl">TimeseriesPrediction.jl</a> package. The <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/tree/dcb080376a7861716147c04e45c473f55bb9a078/examples">example files</a>, included together in the <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/blob/dcb080376a7861716147c04e45c473f55bb9a078/docs/src/stexamples.jl">stexamples.jl</a> file, are processed by literate via this <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/blob/dcb080376a7861716147c04e45c473f55bb9a078/docs/make.jl">make.jl</a> file to generate the markdown and code cells of the documentation.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../outputformats/">« <strong>4.</strong> Output formats</a><a class="docs-footer-nextpage" href="../documenter/"><strong>6.</strong> Interaction with Documenter.jl »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 2 September 2025 08:16">Tuesday 2 September 2025</span>. Using Julia version 1.11.6.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
name = &quot;markdown_file_name&quot;, preprocess = replace_includes)</code></pre><p>and you will see that in the final output file (here <code>markdown_file_name.md</code>) the <code>include</code> statements are replaced with the actual code to be included!</p><p>This approach is used for generating <a href="https://juliadynamics.github.io/TimeseriesPrediction.jl/latest/stexamples/">the examples</a> in the documentation of the <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl">TimeseriesPrediction.jl</a> package. The <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/tree/dcb080376a7861716147c04e45c473f55bb9a078/examples">example files</a>, included together in the <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/blob/dcb080376a7861716147c04e45c473f55bb9a078/docs/src/stexamples.jl">stexamples.jl</a> file, are processed by literate via this <a href="https://github.com/JuliaDynamics/TimeseriesPrediction.jl/blob/dcb080376a7861716147c04e45c473f55bb9a078/docs/make.jl">make.jl</a> file to generate the markdown and code cells of the documentation.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../outputformats/">« <strong>4.</strong> Output formats</a><a class="docs-footer-nextpage" href="../documenter/"><strong>6.</strong> Interaction with Documenter.jl »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.0 on <span class="colophon-date" title="Wednesday 19 November 2025 18:04">Wednesday 19 November 2025</span>. Using Julia version 1.12.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

2
dev/documenter/index.html

@ -21,4 +21,4 @@ $$</code></pre></li><li><p>Documenter style admonitions</p><pre><code class="noh @@ -21,4 +21,4 @@ $$</code></pre></li><li><p>Documenter style admonitions</p><pre><code class="noh
&gt;
&gt; An important warning.</code></pre></li><li><p>Whereas Documenter requires HTML blocks to be escaped</p><pre><code class="nohighlight hljs">```@raw html
&lt;tag&gt;...&lt;/tag&gt;
```</code></pre><p>the output to a notebook markdown cell will be raw HTML</p><pre><code class="nohighlight hljs">&lt;tag&gt;...&lt;/tag&gt;</code></pre></li></ul><h3 id="[Literate.script](@ref):"><a class="docs-heading-anchor" href="#[Literate.script](@ref):"><a href="../outputformats/#Literate.script"><code>Literate.script</code></a>:</a><a id="[Literate.script](@ref):-1"></a><a class="docs-heading-anchor-permalink" href="#[Literate.script](@ref):" title="Permalink"></a></h3><ul><li>Documenter style <code>@ref</code>s, <code>@extref</code>s and <code>@id</code> will be removed. This means that you can use <code>@ref</code>, <code>@extref</code> and <code>@id</code> in the source file without them leaking to the script.</li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../customprocessing/">« <strong>5.</strong> Custom pre- and post-processing</a><a class="docs-footer-nextpage" href="../tips/"><strong>7.</strong> Tips and tricks »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 2 September 2025 08:16">Tuesday 2 September 2025</span>. Using Julia version 1.11.6.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
```</code></pre><p>the output to a notebook markdown cell will be raw HTML</p><pre><code class="nohighlight hljs">&lt;tag&gt;...&lt;/tag&gt;</code></pre></li></ul><h3 id="[Literate.script](@ref):"><a class="docs-heading-anchor" href="#[Literate.script](@ref):"><a href="../outputformats/#Literate.script"><code>Literate.script</code></a>:</a><a id="[Literate.script](@ref):-1"></a><a class="docs-heading-anchor-permalink" href="#[Literate.script](@ref):" title="Permalink"></a></h3><ul><li>Documenter style <code>@ref</code>s, <code>@extref</code>s and <code>@id</code> will be removed. This means that you can use <code>@ref</code>, <code>@extref</code> and <code>@id</code> in the source file without them leaking to the script.</li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../customprocessing/">« <strong>5.</strong> Custom pre- and post-processing</a><a class="docs-footer-nextpage" href="../tips/"><strong>7.</strong> Tips and tricks »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.0 on <span class="colophon-date" title="Wednesday 19 November 2025 18:04">Wednesday 19 November 2025</span>. Using Julia version 1.12.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

4
dev/fileformat/index.html

@ -24,9 +24,9 @@ This is also markdown. @@ -24,9 +24,9 @@ This is also markdown.
# Title
blah blah blah
&quot;&quot;&quot;</code></pre><p>is rewritten to</p><pre><code class="nohighlight hljs"># # Title
# blah blah blah</code></pre><p>This is not enabled by default – it requires passing <code>mdstrings=true</code>. <code>Literate.markdown</code>/<code>Literate.notebook</code>/<code>Literate.script</code>.</p><h2 id="Filtering-lines"><a class="docs-heading-anchor" href="#Filtering-lines"><strong>2.2.</strong> Filtering lines</a><a id="Filtering-lines-1"></a><a class="docs-heading-anchor-permalink" href="#Filtering-lines" title="Permalink"></a></h2><p>It is often useful to filter out lines in the source depending on the output format. For this purpose there are a number of &quot;tokens&quot; that can be used to mark the purpose of certain lines:</p><ul><li><code>#md</code>: line exclusive to markdown output,</li><li><code>#nb</code>: line exclusive to notebook output,</li><li><code>#jl</code>: line exclusive to script output,</li><li><code>#src</code>: line exclusive to the source code and thus filtered out unconditionally.</li></ul><p>Lines <em>starting</em> or <em>ending</em> with one of these tokens are filtered out in the <a href="../pipeline/#Pre-processing">preprocessing step</a>. In addition, for markdown output, lines ending with <code>#hide</code> are filtered out similar to Documenter.jl.</p><div class="admonition is-info"><header class="admonition-header">Difference between `#src` and `#hide`</header><div class="admonition-body"><p><code>#src</code> and <code>#hide</code> are quite similar. The only difference is that <code>#src</code> lines are filtered out <em>before</em> execution (if <code>execute=true</code>) and <code>#hide</code> lines are filtered out <em>after</em> execution.</p></div></div><div class="admonition is-success"><header class="admonition-header">Tip</header><div class="admonition-body"><p>The tokens can also be negated, for example a line starting with <code>#!nb</code> would be included in markdown and script output, but filtered out for notebook output.</p></div></div><p>Suppose, for example, that we want to include a docstring within a <code>@docs</code> block using Documenter. Obviously we don&#39;t want to include this in the notebook, since <code>@docs</code> is Documenter syntax that the notebook will not understand. This is a case where we can prepend <code>#md</code> to those lines:</p><pre><code class="language-julia hljs">#md # ```@docs
# blah blah blah</code></pre><p>This is not enabled by default – it requires passing <code>mdstrings=true</code>. <code>Literate.markdown</code>/<code>Literate.notebook</code>/<code>Literate.script</code>.</p><h2 id="Filtering-lines"><a class="docs-heading-anchor" href="#Filtering-lines"><strong>2.2.</strong> Filtering lines</a><a id="Filtering-lines-1"></a><a class="docs-heading-anchor-permalink" href="#Filtering-lines" title="Permalink"></a></h2><p>It is often useful to filter out lines in the source depending on the output format. For this purpose there are a number of &quot;tokens&quot; that can be used to mark the purpose of certain lines:</p><ul><li><code>#md</code>: line exclusive to markdown output,</li><li><code>#nb</code>: line exclusive to notebook output,</li><li><code>#jl</code>: line exclusive to script output,</li><li><code>#src</code>: line exclusive to the source code and thus filtered out unconditionally.</li></ul><p>Lines <em>starting</em> or <em>ending</em> with one of these tokens are filtered out in the <a href="../pipeline/#Pre-processing">preprocessing step</a>. In addition, for markdown output, lines ending with <code>#hide</code> are filtered out similar to Documenter.jl.</p><div class="admonition is-info" id="Difference-between-#src-and-#hide-d43ff38d8c47a3a3"><header class="admonition-header">Difference between `#src` and `#hide`<a class="admonition-anchor" href="#Difference-between-#src-and-#hide-d43ff38d8c47a3a3" title="Permalink"></a></header><div class="admonition-body"><p><code>#src</code> and <code>#hide</code> are quite similar. The only difference is that <code>#src</code> lines are filtered out <em>before</em> execution (if <code>execute=true</code>) and <code>#hide</code> lines are filtered out <em>after</em> execution.</p></div></div><div class="admonition is-success" id="Tip-5011ca2a8bf01b70"><header class="admonition-header">Tip<a class="admonition-anchor" href="#Tip-5011ca2a8bf01b70" title="Permalink"></a></header><div class="admonition-body"><p>The tokens can also be negated, for example a line starting with <code>#!nb</code> would be included in markdown and script output, but filtered out for notebook output.</p></div></div><p>Suppose, for example, that we want to include a docstring within a <code>@docs</code> block using Documenter. Obviously we don&#39;t want to include this in the notebook, since <code>@docs</code> is Documenter syntax that the notebook will not understand. This is a case where we can prepend <code>#md</code> to those lines:</p><pre><code class="language-julia hljs">#md # ```@docs
#md # Literate.markdown
#md # Literate.notebook
#md # Literate.script
#md # ```</code></pre><p>The lines in the example above would be filtered out in the preprocessing step, unless we are generating a markdown file. When generating a markdown file we would simply remove the leading <code>#md</code> from the lines. Beware that the space after the tag is also removed.</p><p>The <code>#src</code> token can also be placed at the <em>end</em> of a line. This is to make it possible to have code lines exclusive to the source code, and not just comment lines. For example, if the source file is included in the test suite we might want to add a <code>@test</code> at the end without this showing up in the outputs:</p><pre><code class="language-julia hljs">using Test #src
@test result == expected_result #src</code></pre><h2 id="Default-replacements"><a class="docs-heading-anchor" href="#Default-replacements"><strong>2.3.</strong> Default replacements</a><a id="Default-replacements-1"></a><a class="docs-heading-anchor-permalink" href="#Default-replacements" title="Permalink"></a></h2><p>The following convenience &quot;macros&quot;/source placeholders are always expanded:</p><ul><li><p><code>@__NAME__</code>:</p><p>expands to the <code>name</code> keyword argument to <a href="../outputformats/#Literate.markdown"><code>Literate.markdown</code></a>, <a href="../outputformats/#Literate.notebook"><code>Literate.notebook</code></a> and <a href="../outputformats/#Literate.script"><code>Literate.script</code></a> (defaults to the filename of the input file).</p></li><li><p><code>@__REPO_ROOT_URL__</code>:</p><p>Can be used to link to files in the repository. For example <code>@__REPO_ROOT_URL__/src/Literate.jl</code> would link to the <a href="https://github.com/fredrikekre/Literate.jl/blob/master/src/Literate.jl">source of the Literate module</a>. This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li><li><p><code>@__NBVIEWER_ROOT_URL__</code>:</p><p>Can be used if you want a link that opens the generated notebook in <a href="http://nbviewer.jupyter.org/">http://nbviewer.jupyter.org/</a>. This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li><li><p><code>@__BINDER_ROOT_URL__</code>:</p><p>Can be used if you want a link that opens the generated notebook in <a href="https://mybinder.org/">https://mybinder.org/</a>. For example, to add a binder-badge in e.g. the HTML output you can use:</p><pre><code class="nohighlight hljs">[![Binder](https://mybinder.org/badge_logo.svg)](@__BINDER_ROOT_URL__/path/to/notebook.inpynb)</code></pre><p>This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« <strong>1.</strong> Introduction</a><a class="docs-footer-nextpage" href="../pipeline/"><strong>3.</strong> Processing pipeline »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 2 September 2025 08:16">Tuesday 2 September 2025</span>. Using Julia version 1.11.6.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
@test result == expected_result #src</code></pre><h2 id="Default-replacements"><a class="docs-heading-anchor" href="#Default-replacements"><strong>2.3.</strong> Default replacements</a><a id="Default-replacements-1"></a><a class="docs-heading-anchor-permalink" href="#Default-replacements" title="Permalink"></a></h2><p>The following convenience &quot;macros&quot;/source placeholders are always expanded:</p><ul><li><p><code>@__NAME__</code>:</p><p>expands to the <code>name</code> keyword argument to <a href="../outputformats/#Literate.markdown"><code>Literate.markdown</code></a>, <a href="../outputformats/#Literate.notebook"><code>Literate.notebook</code></a> and <a href="../outputformats/#Literate.script"><code>Literate.script</code></a> (defaults to the filename of the input file).</p></li><li><p><code>@__REPO_ROOT_URL__</code>:</p><p>Can be used to link to files in the repository. For example <code>@__REPO_ROOT_URL__/src/Literate.jl</code> would link to the <a href="https://github.com/fredrikekre/Literate.jl/blob/master/src/Literate.jl">source of the Literate module</a>. This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li><li><p><code>@__NBVIEWER_ROOT_URL__</code>:</p><p>Can be used if you want a link that opens the generated notebook in <a href="http://nbviewer.jupyter.org/">http://nbviewer.jupyter.org/</a>. This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li><li><p><code>@__BINDER_ROOT_URL__</code>:</p><p>Can be used if you want a link that opens the generated notebook in <a href="https://mybinder.org/">https://mybinder.org/</a>. For example, to add a binder-badge in e.g. the HTML output you can use:</p><pre><code class="nohighlight hljs">[![Binder](https://mybinder.org/badge_logo.svg)](@__BINDER_ROOT_URL__/path/to/notebook.inpynb)</code></pre><p>This variable is automatically determined on Travis CI, GitHub Actions and GitLab CI, but can be configured, see <a href="../outputformats/#Configuration">Configuration</a>.</p></li></ul></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« <strong>1.</strong> Introduction</a><a class="docs-footer-nextpage" href="../pipeline/"><strong>3.</strong> Processing pipeline »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.0 on <span class="colophon-date" title="Wednesday 19 November 2025 18:04">Wednesday 19 November 2025</span>. Using Julia version 1.12.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

117
dev/generated/example.ipynb

File diff suppressed because one or more lines are too long

64
dev/generated/example/503514a8.svg → dev/generated/example/31f14fb6.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

6
dev/generated/example/index.html

File diff suppressed because one or more lines are too long

2
dev/generated/name/index.html

File diff suppressed because one or more lines are too long

6
dev/generated/notebook.ipynb

@ -87,11 +87,11 @@ @@ -87,11 +87,11 @@
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.6"
"version": "1.12.1"
},
"kernelspec": {
"name": "julia-1.11",
"display_name": "Julia 1.11.6",
"name": "julia-1.12",
"display_name": "Julia 1.12.1",
"language": "julia"
}
},

2
dev/index.html

File diff suppressed because one or more lines are too long

BIN
dev/objects.inv

Binary file not shown.

6
dev/outputformats/index.html

File diff suppressed because one or more lines are too long

2
dev/pipeline/index.html

@ -29,4 +29,4 @@ x = 1 // 3 @@ -29,4 +29,4 @@ x = 1 // 3
y = 2 // 5</code></pre><p>Chunk #3:</p><pre><code class="language-markdown hljs">When adding `x` and `y` together we obtain a new rational number:</code></pre><p>Chunk #4:</p><pre><code class="language-julia hljs">z = x + y</code></pre><p>It is then up to the <a href="#Document-generation">Document generation</a> step to decide how these chunks should be treated.</p><h3 id="Custom-control-over-chunk-splits"><a class="docs-heading-anchor" href="#Custom-control-over-chunk-splits">Custom control over chunk splits</a><a id="Custom-control-over-chunk-splits-1"></a><a class="docs-heading-anchor-permalink" href="#Custom-control-over-chunk-splits" title="Permalink"></a></h3><p>Sometimes it is convenient to be able to manually control how the chunks are split. For example, if you want to split a block of code into two, such that they end up in two different <code>@example</code> blocks or notebook cells. The <code>#-</code> token can be used for this purpose. All lines starting with <code>#-</code> are used as &quot;chunk-splitters&quot;:</p><pre><code class="language-julia hljs">x = 1 // 3
y = 2 // 5
#-
z = x + y</code></pre><p>The example above would result in two consecutive code-chunks.</p><div class="admonition is-success"><header class="admonition-header">Tip</header><div class="admonition-body"><p>The rest of the line, after <code>#-</code>, is discarded, so it is possible to use e.g. <code>#-------------</code> as a chunk splitter, which may make the source code more readable.</p></div></div><p>It is also possible to use <code>#+</code> as a chunk splitter. The difference between <code>#+</code> and <code>#-</code> is that <code>#+</code> enables Documenter&#39;s &quot;continued&quot;-blocks, see the <a href="https://juliadocs.github.io/Documenter.jl/stable/">Documenter manual</a>.</p><h2 id="Document-generation"><a class="docs-heading-anchor" href="#Document-generation"><strong>3.3.</strong> Document generation</a><a id="Document-generation-1"></a><a class="docs-heading-anchor-permalink" href="#Document-generation" title="Permalink"></a></h2><p>After the parsing it is time to generate the output. What is done in this step is very different depending on the output target, and it is described in more detail in the Output format sections: <a href="../outputformats/#Markdown-output">Markdown output</a>, <a href="../outputformats/#Notebook-output">Notebook output</a> and <a href="../outputformats/#Script-output">Script output</a>. Using the default settings, the following is happening:</p><ul><li>Markdown output: markdown chunks are printed as-is, code chunks are put inside a code fence (defaults to <code>@example</code>-blocks),</li><li>Notebook output: markdown chunks are printed in markdown cells, code chunks are put in code cells,</li><li>Script output: markdown chunks are discarded, code chunks are printed as-is.</li></ul><h2 id="Post-processing"><a class="docs-heading-anchor" href="#Post-processing"><strong>3.4.</strong> Post-processing</a><a id="Post-processing-1"></a><a class="docs-heading-anchor-permalink" href="#Post-processing" title="Permalink"></a></h2><p>When the document is generated the user, again, has the option to hook-into the generation with a custom post-processing function. The reason is that one might want to change things that are only visible in the rendered document. See <a href="../customprocessing/#Custom-pre-and-post-processing">Custom pre- and post-processing</a>.</p><h2 id="Writing-to-file"><a class="docs-heading-anchor" href="#Writing-to-file"><strong>3.5.</strong> Writing to file</a><a id="Writing-to-file-1"></a><a class="docs-heading-anchor-permalink" href="#Writing-to-file" title="Permalink"></a></h2><p>The last step of the generation is writing to file. The result is written to <code>$(outputdir)/$(name)(.md|.ipynb|.jl)</code> where <code>outputdir</code> is the output directory supplied by the user (for example <code>docs/generated</code>), and <code>name</code> is a user supplied filename. It is recommended to add the output directory to <code>.gitignore</code> since the idea is that the generated documents will be generated as part of the build process rather than being files in the repo.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../fileformat/">« <strong>2.</strong> File format</a><a class="docs-footer-nextpage" href="../outputformats/"><strong>4.</strong> Output formats »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 2 September 2025 08:16">Tuesday 2 September 2025</span>. Using Julia version 1.11.6.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
z = x + y</code></pre><p>The example above would result in two consecutive code-chunks.</p><div class="admonition is-success" id="Tip-fe7226d986c6db44"><header class="admonition-header">Tip<a class="admonition-anchor" href="#Tip-fe7226d986c6db44" title="Permalink"></a></header><div class="admonition-body"><p>The rest of the line, after <code>#-</code>, is discarded, so it is possible to use e.g. <code>#-------------</code> as a chunk splitter, which may make the source code more readable.</p></div></div><p>It is also possible to use <code>#+</code> as a chunk splitter. The difference between <code>#+</code> and <code>#-</code> is that <code>#+</code> enables Documenter&#39;s &quot;continued&quot;-blocks, see the <a href="https://juliadocs.github.io/Documenter.jl/stable/">Documenter manual</a>.</p><h2 id="Document-generation"><a class="docs-heading-anchor" href="#Document-generation"><strong>3.3.</strong> Document generation</a><a id="Document-generation-1"></a><a class="docs-heading-anchor-permalink" href="#Document-generation" title="Permalink"></a></h2><p>After the parsing it is time to generate the output. What is done in this step is very different depending on the output target, and it is described in more detail in the Output format sections: <a href="../outputformats/#Markdown-output">Markdown output</a>, <a href="../outputformats/#Notebook-output">Notebook output</a> and <a href="../outputformats/#Script-output">Script output</a>. Using the default settings, the following is happening:</p><ul><li>Markdown output: markdown chunks are printed as-is, code chunks are put inside a code fence (defaults to <code>@example</code>-blocks),</li><li>Notebook output: markdown chunks are printed in markdown cells, code chunks are put in code cells,</li><li>Script output: markdown chunks are discarded, code chunks are printed as-is.</li></ul><h2 id="Post-processing"><a class="docs-heading-anchor" href="#Post-processing"><strong>3.4.</strong> Post-processing</a><a id="Post-processing-1"></a><a class="docs-heading-anchor-permalink" href="#Post-processing" title="Permalink"></a></h2><p>When the document is generated the user, again, has the option to hook-into the generation with a custom post-processing function. The reason is that one might want to change things that are only visible in the rendered document. See <a href="../customprocessing/#Custom-pre-and-post-processing">Custom pre- and post-processing</a>.</p><h2 id="Writing-to-file"><a class="docs-heading-anchor" href="#Writing-to-file"><strong>3.5.</strong> Writing to file</a><a id="Writing-to-file-1"></a><a class="docs-heading-anchor-permalink" href="#Writing-to-file" title="Permalink"></a></h2><p>The last step of the generation is writing to file. The result is written to <code>$(outputdir)/$(name)(.md|.ipynb|.jl)</code> where <code>outputdir</code> is the output directory supplied by the user (for example <code>docs/generated</code>), and <code>name</code> is a user supplied filename. It is recommended to add the output directory to <code>.gitignore</code> since the idea is that the generated documents will be generated as part of the build process rather than being files in the repo.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../fileformat/">« <strong>2.</strong> File format</a><a class="docs-footer-nextpage" href="../outputformats/"><strong>4.</strong> Output formats »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.16.0 on <span class="colophon-date" title="Wednesday 19 November 2025 18:04">Wednesday 19 November 2025</span>. Using Julia version 1.12.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

2
dev/reference/index.html

File diff suppressed because one or more lines are too long

2
dev/search_index.js

File diff suppressed because one or more lines are too long

1
dev/siteinfo.js

@ -1 +1,2 @@ @@ -1 +1,2 @@
var DOCUMENTER_CURRENT_VERSION = "dev";
var DOCUMENTER_IS_DEV_VERSION = true;

4
dev/tips/index.html

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save