From bd380b1f97403414bf4e1c0e09b84ef99395612d Mon Sep 17 00:00:00 2001 From: Quarto GHA Workflow Runner Date: Wed, 27 Mar 2024 07:14:26 +0000 Subject: [PATCH] Built site for gh-pages --- .nojekyll | 2 +- about.html | 230 ++- index.html | 232 ++- listings.json | 2 +- posts.html | 284 +++- posts/data_science/hello_world.html | 1430 +++++++++++++++++ ...1-c5981c58-f7fe-4403-ac33-a2815c5fefaf.png | Bin 0 -> 210619 bytes ...1-93ad73f7-be35-4f2e-a26c-0c85a6f32e4f.png | Bin 0 -> 226638 bytes ...1-649f8bac-3c6e-4649-adc9-e69be6f2964d.png | Bin 0 -> 200505 bytes ...1-1f40b6df-d4e7-43b8-ae12-215dd331b04f.png | Bin 0 -> 164657 bytes ...1-4f6bb75d-9e6f-49e6-8bcf-19fe7448e5d4.png | Bin 0 -> 171522 bytes ...1-f770aca0-b348-4ad0-aa33-d045d53719bc.png | Bin 0 -> 179313 bytes ...1-13fdea7e-2c7a-4ec8-ad33-fb8013635d3c.png | Bin 0 -> 155961 bytes ...1-13d83f23-87f8-4a3d-b38b-b1e4f14834e1.png | Bin 0 -> 217297 bytes ...1-db1421a5-9a86-413a-9efe-d8c8c2b892aa.png | Bin 0 -> 134800 bytes ...1-e8e8f792-7e31-4e8e-8d5f-85b88b335897.png | Bin 0 -> 430652 bytes ...1-e0762b12-8ca2-45bf-98c4-fa84db5a91d4.png | Bin 0 -> 132173 bytes ...1-62dc8e0a-b5e5-466e-a2e4-baba287d5b94.png | Bin 0 -> 202966 bytes ...1-1183eecd-be78-4990-8ed1-215b2d8d84b2.png | Bin 0 -> 355929 bytes posts/education/index.html | 297 +++- posts/education/learning_visually.html | 226 ++- posts/education/parenting_coach.html | 230 ++- posts/education/project_driven_learning.html | 230 ++- .../resources_early_childhood_education.html | 266 ++- posts/health/agency_and_gratitude.html | 230 ++- posts/health/huberman_podcast_will_power.html | 226 ++- posts/health/index.html | 297 +++- posts/health/physical_health.html | 226 ++- posts/health/tenacity_and_will_power.html | 226 ++- posts/others/index.html | 264 ++- posts/others/podcasts.html | 230 ++- robots.txt | 2 +- search.json | 259 +-- site_libs/bootstrap/bootstrap-icons.css | 148 +- site_libs/bootstrap/bootstrap-icons.woff | Bin 164168 -> 176200 bytes site_libs/bootstrap/bootstrap.min.css | 12 +- site_libs/bootstrap/bootstrap.min.js | 6 +- site_libs/quarto-html/anchor.min.js | 6 +- site_libs/quarto-html/popper.min.js | 4 +- site_libs/quarto-html/quarto.js | 29 +- site_libs/quarto-nav/quarto-nav.js | 22 +- site_libs/quarto-search/autocomplete.umd.js | 4 +- site_libs/quarto-search/quarto-search.js | 226 ++- sitemap.xml | 64 +- 44 files changed, 5268 insertions(+), 642 deletions(-) create mode 100644 posts/data_science/hello_world.html create mode 100644 posts/data_science/hello_world_files/figure-html/2cfb025b-128c-4db6-9938-7b213f4da644-1-c5981c58-f7fe-4403-ac33-a2815c5fefaf.png create mode 100644 posts/data_science/hello_world_files/figure-html/41f48859-e503-42d8-b66d-d9d504d39279-1-93ad73f7-be35-4f2e-a26c-0c85a6f32e4f.png create mode 100644 posts/data_science/hello_world_files/figure-html/5d2c9a0e-6d2f-445f-871d-3a6896a52495-1-649f8bac-3c6e-4649-adc9-e69be6f2964d.png create mode 100644 posts/data_science/hello_world_files/figure-html/7f4a26b1-ad9f-4939-af0c-f78785720cf6-1-1f40b6df-d4e7-43b8-ae12-215dd331b04f.png create mode 100644 posts/data_science/hello_world_files/figure-html/a1577977-2631-4a28-a2d8-d2d2a76c1c41-1-4f6bb75d-9e6f-49e6-8bcf-19fe7448e5d4.png create mode 100644 posts/data_science/hello_world_files/figure-html/a6035d31-cf69-4892-96c5-442c60402617-1-f770aca0-b348-4ad0-aa33-d045d53719bc.png create mode 100644 posts/data_science/hello_world_files/figure-html/bb15d35a-4ea8-49ed-82ce-c015ee4e827d-1-13fdea7e-2c7a-4ec8-ad33-fb8013635d3c.png create mode 100644 posts/data_science/hello_world_files/figure-html/bb51423a-8e0c-4fde-9fbe-409c014c70f7-1-13d83f23-87f8-4a3d-b38b-b1e4f14834e1.png create mode 100644 posts/data_science/hello_world_files/figure-html/e0f6699a-8753-4896-af57-5339ea24f2ed-1-db1421a5-9a86-413a-9efe-d8c8c2b892aa.png create mode 100644 posts/data_science/hello_world_files/figure-html/f0600250-c9f3-4a61-8264-3fe912a3cb94-1-e8e8f792-7e31-4e8e-8d5f-85b88b335897.png create mode 100644 posts/data_science/hello_world_files/figure-html/f3cbea29-9416-4042-91ce-284629f22066-1-e0762b12-8ca2-45bf-98c4-fa84db5a91d4.png create mode 100644 posts/data_science/hello_world_files/figure-html/f7fad0a5-1d87-4d0b-85f9-90c4eac1dc85-1-62dc8e0a-b5e5-466e-a2e4-baba287d5b94.png create mode 100644 posts/data_science/hello_world_files/figure-html/f9a0a63e-856e-44a0-8e2f-6347491133db-1-1183eecd-be78-4990-8ed1-215b2d8d84b2.png diff --git a/.nojekyll b/.nojekyll index 95b7544..3043550 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -588b1c60 \ No newline at end of file +c5d5b43a \ No newline at end of file diff --git a/about.html b/about.html index 5b30761..0defd8e 100644 --- a/about.html +++ b/about.html @@ -2,7 +2,7 @@ - + @@ -45,7 +45,13 @@ "collapse-after": 3, "panel-placement": "end", "type": "overlay", - "limit": 20, + "limit": 50, + "keyboard-shortcut": [ + "f", + "/", + "s" + ], + "show-item-context": false, "language": { "search-no-results-text": "No results", "search-matching-documents-text": "matching documents", @@ -54,6 +60,7 @@ "search-more-match-text": "more match in this document", "search-more-matches-text": "more matches in this document", "search-clear-button-title": "Clear", + "search-text-placeholder": "", "search-detached-cancel-button-title": "Cancel", "search-submit-button-title": "Submit", "search-label": "Search" @@ -63,11 +70,11 @@ - - + + - + @@ -76,9 +83,9 @@
-
@@ -131,8 +138,10 @@

About

+ +

About this site

@@ -217,10 +226,27 @@

About

// clear code selection e.clearSelection(); }); - function tippyHover(el, contentFn) { + var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); + var mailtoRegex = new RegExp(/^mailto:/); + var filterRegex = new RegExp("https:\/\/JaumeAmoresDS\.github\.io\/home\/"); + var isInternal = (href) => { + return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); + } + // Inspect non-navigation links and adorn them if external + var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)'); + for (var i=0; iAbout interactive: true, interactiveBorder: 10, theme: 'quarto', - placement: 'bottom-start' + placement: 'bottom-start', }; + if (contentFn) { + config.content = contentFn; + } + if (onTriggerFn) { + config.onTrigger = onTriggerFn; + } + if (onUntriggerFn) { + config.onUntrigger = onUntriggerFn; + } window.tippy(el, config); } const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]'); @@ -243,7 +278,130 @@

About

try { href = new URL(href).hash; } catch {} const id = href.replace(/^#\/?/, ""); const note = window.document.getElementById(id); - return note.innerHTML; + if (note) { + return note.innerHTML; + } else { + return ""; + } + }); + } + const xrefs = window.document.querySelectorAll('a.quarto-xref'); + const processXRef = (id, note) => { + // Strip column container classes + const stripColumnClz = (el) => { + el.classList.remove("page-full", "page-columns"); + if (el.children) { + for (const child of el.children) { + stripColumnClz(child); + } + } + } + stripColumnClz(note) + if (id === null || id.startsWith('sec-')) { + // Special case sections, only their first couple elements + const container = document.createElement("div"); + if (note.children && note.children.length > 2) { + container.appendChild(note.children[0].cloneNode(true)); + for (let i = 1; i < note.children.length; i++) { + const child = note.children[i]; + if (child.tagName === "P" && child.innerText === "") { + continue; + } else { + container.appendChild(child.cloneNode(true)); + break; + } + } + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(container); + } + return container.innerHTML + } else { + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(note); + } + return note.innerHTML; + } + } else { + // Remove any anchor links if they are present + const anchorLink = note.querySelector('a.anchorjs-link'); + if (anchorLink) { + anchorLink.remove(); + } + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(note); + } + // TODO in 1.5, we should make sure this works without a callout special case + if (note.classList.contains("callout")) { + return note.outerHTML; + } else { + return note.innerHTML; + } + } + } + for (var i=0; i res.text()) + .then(html => { + const parser = new DOMParser(); + const htmlDoc = parser.parseFromString(html, "text/html"); + const note = htmlDoc.getElementById(id); + if (note !== null) { + const html = processXRef(id, note); + instance.setContent(html); + } + }).finally(() => { + instance.enable(); + instance.show(); + }); + } + } else { + // See if we can fetch a full url (with no hash to target) + // This is a special case and we should probably do some content thinning / targeting + fetch(url) + .then(res => res.text()) + .then(html => { + const parser = new DOMParser(); + const htmlDoc = parser.parseFromString(html, "text/html"); + const note = htmlDoc.querySelector('main.content'); + if (note !== null) { + // This should only happen for chapter cross references + // (since there is no id in the URL) + // remove the first header + if (note.children.length > 0 && note.children[0].tagName === "HEADER") { + note.children[0].remove(); + } + const html = processXRef(null, note); + instance.setContent(html); + } + }).finally(() => { + instance.enable(); + instance.show(); + }); + } + }, function(instance) { }); } let selectedAnnoteEl; @@ -287,6 +445,7 @@

About

} div.style.top = top - 2 + "px"; div.style.height = height + 4 + "px"; + div.style.left = 0; let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter"); if (gutterDiv === null) { gutterDiv = window.document.createElement("div"); @@ -312,6 +471,32 @@

About

}); selectedAnnoteEl = undefined; }; + // Handle positioning of the toggle + window.addEventListener( + "resize", + throttle(() => { + elRect = undefined; + if (selectedAnnoteEl) { + selectCodeLines(selectedAnnoteEl); + } + }, 10) + ); + function throttle(fn, ms) { + let throttle = false; + let timer; + return (...args) => { + if(!throttle) { // first call gets through + fn.apply(this, args); + throttle = true; + } else { // all the others get throttled + if(timer) clearTimeout(timer); // cancel #2 + timer = setTimeout(() => { + fn.apply(this, args); + timer = throttle = false; + }, ms); + } + }; + } // Attach click handler to the DT const annoteDls = window.document.querySelectorAll('dt[data-target-cell]'); for (const annoteDlNode of annoteDls) { @@ -373,10 +558,14 @@

About

+ +