Deployed b6302e3 with MkDocs version: 1.6.1

This commit is contained in:
2025-10-31 10:38:41 +00:00
commit 6440463f24
367 changed files with 97732 additions and 0 deletions

42
js/print-site.js Normal file
View File

@@ -0,0 +1,42 @@
/*
Javascript functions to help make the print page more PDF friendly
*/
/*
Copy the table of contents from the sidebar's.
Only called when print-site-plugin option 'add_table_of_contents' is set to true
*/
function generate_toc() {
const sidebar = document.body.getElementsByClassName("md-sidebar--secondary")[0] ??
document.getElementById("toc-collapse");
const sidebarToc = sidebar.getElementsByTagName("ul")[0];
var clonedToc = sidebarToc.cloneNode(true);
clonedToc.removeAttribute("data-md-component");
document.querySelectorAll("#print-page-toc nav")[0].insertAdjacentHTML("beforeend", clonedToc.outerHTML);
}
function remove_material_navigation() {
// Remove left sidebar on print page
remove_element_by_classname("md-sidebar--primary")
// Remove tabs navigation on print page
remove_element_by_classname("md-tabs")
// Remove search
remove_element_by_classname("md-search")
}
function remove_mkdocs_theme_navigation() {
// Remove top navigation bar
remove_element_by_classname("navbar")
}
function remove_element_by_classname(class_name) {
var el = document.getElementsByClassName(class_name);
if( el.length > 0) {
el[0].style.display = "none"
}
}