Skip to content

Commit 84cba17

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent 6ec1468 commit 84cba17

File tree

12 files changed

+2241
-488
lines changed

12 files changed

+2241
-488
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ba97d0e8
1+
1f2c1b97

computo-quarto-extension.html

Lines changed: 1752 additions & 0 deletions
Large diffs are not rendered by default.

computo-quarto-extension.pdf

-18.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

computo-quarto-extension_files/libs/bootstrap/bootstrap.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

computo-quarto-extension_files/libs/quarto-contrib/pseudocode-2.4.1/pseudocode.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

computo-quarto-extension_files/libs/quarto-contrib/pseudocode-2.4/pseudocode.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

computo-quarto-extension_files/libs/quarto-html/quarto.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
9494
if (link.href.indexOf("#") !== -1) {
9595
const anchor = link.href.split("#")[1];
9696
const heading = window.document.querySelector(
97-
`[data-anchor-id=${anchor}]`
97+
`[data-anchor-id="${anchor}"]`
9898
);
9999
if (heading) {
100100
// Add the class
@@ -134,8 +134,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
134134
window.innerHeight + window.pageYOffset >=
135135
window.document.body.offsetHeight
136136
) {
137+
// This is the no-scroll case where last section should be the active one
137138
sectionIndex = 0;
138139
} else {
140+
// This finds the last section visible on screen that should be made active
139141
sectionIndex = [...sections].reverse().findIndex((section) => {
140142
if (section) {
141143
return window.pageYOffset >= section.offsetTop - sectionMargin;
@@ -317,6 +319,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
317319
for (const child of el.children) {
318320
child.style.opacity = 0;
319321
child.style.overflow = "hidden";
322+
child.style.pointerEvents = "none";
320323
}
321324

322325
nexttick(() => {
@@ -358,6 +361,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
358361

359362
const clone = child.cloneNode(true);
360363
clone.style.opacity = 1;
364+
clone.style.pointerEvents = null;
361365
clone.style.display = null;
362366
toggleContents.append(clone);
363367
}
@@ -432,6 +436,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
432436
for (const child of el.children) {
433437
child.style.opacity = 1;
434438
child.style.overflow = null;
439+
child.style.pointerEvents = null;
435440
}
436441

437442
const placeholderEl = window.document.getElementById(
@@ -739,6 +744,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
739744
// Process the collapse state if this is an UL
740745
if (el.tagName === "UL") {
741746
if (tocOpenDepth === -1 && depth > 1) {
747+
// toc-expand: false
742748
el.classList.add("collapse");
743749
} else if (
744750
depth <= tocOpenDepth ||
@@ -757,10 +763,9 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
757763
};
758764

759765
// walk the TOC and expand / collapse any items that should be shown
760-
761766
if (tocEl) {
762-
walk(tocEl, 0);
763767
updateActiveLink();
768+
walk(tocEl, 0);
764769
}
765770

766771
// Throttle the scroll event and walk peridiocally
@@ -779,6 +784,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
779784
window.addEventListener(
780785
"resize",
781786
throttle(() => {
787+
if (tocEl) {
788+
updateActiveLink();
789+
walk(tocEl, 0);
790+
}
782791
if (!isReaderMode()) {
783792
hideOverlappedSidebars();
784793
}

index.html

Lines changed: 473 additions & 481 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)