Skip to content

Commit

Permalink
Deploying to gh-pages from @ ef17bda 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jun 9, 2024
1 parent 61d1834 commit 763c099
Show file tree
Hide file tree
Showing 44 changed files with 518 additions and 451 deletions.
4 changes: 2 additions & 2 deletions examples/blog/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.28">
<meta name="generator" content="quarto-1.5.43">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -82,7 +82,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand Down
12 changes: 6 additions & 6 deletions examples/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.28">
<meta name="generator" content="quarto-1.5.43">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -143,7 +143,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand Down Expand Up @@ -205,10 +205,10 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1710201600000" data-listing-file-modified-sort="1712278033902" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1710201600000" data-listing-file-modified-sort="1717949598538" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="thumbnail">
<p><a href="./posts/post-with-code/index.html" class="no-external"></a></p><a href="./posts/post-with-code/index.html" class="no-external">
<p><img src="./posts/post-with-code/image.jpg" class="thumbnail-image"></p>
<p><img loading="lazy" src="./posts/post-with-code/image.jpg" class="thumbnail-image"></p>
</a><p><a href="./posts/post-with-code/index.html" class="no-external"></a></p>
</div>
<div class="body">
Expand Down Expand Up @@ -244,10 +244,10 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1708300800000" data-listing-file-modified-sort="1712278033902" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="92">
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1708300800000" data-listing-file-modified-sort="1717949598538" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="92">
<div class="thumbnail">
<p><a href="./posts/embed-slides/index.html" class="no-external"></a></p><a href="./posts/embed-slides/index.html" class="no-external">
<p><img src="./posts/embed-slides/image.jpg" class="thumbnail-image"></p>
<p><img loading="lazy" src="./posts/embed-slides/image.jpg" class="thumbnail-image"></p>
</a><p><a href="./posts/embed-slides/index.html" class="no-external"></a></p>
</div>
<div class="body">
Expand Down
6 changes: 3 additions & 3 deletions examples/blog/posts/embed-slides/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.28">
<meta name="generator" content="quarto-1.5.43">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -35,7 +35,7 @@
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
Expand Down Expand Up @@ -119,7 +119,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand Down
8 changes: 4 additions & 4 deletions examples/blog/posts/post-with-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.28">
<meta name="generator" content="quarto-1.5.43">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -221,7 +221,7 @@

// Describe the webR settings that should be used
globalThis.qpyodideCustomizedPyodideOptions = {
"indexURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/full/",
"indexURL": "https://cdn.jsdelivr.net/pyodide/v0.26.1/full/",
"env": {
"HOME": "/home/pyodide",
},
Expand All @@ -230,7 +230,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"code":"print(\"Hello {quarto-pyodide} blog world!\")","id":1,"options":{"classes":"","read-only":"false","fig-height":5,"warning":"true","results":"markup","message":"true","context":"interactive","out-height":"","fig-width":7,"comment":"","dpi":72,"fig-cap":"","output":"true","label":"","autorun":"","out-width":"700px"}}];
globalThis.qpyodideCellDetails = [{"id":1,"code":"print(\"Hello {quarto-pyodide} blog world!\")","options":{"classes":"","message":"true","dpi":72,"results":"markup","context":"interactive","warning":"true","read-only":"false","fig-height":5,"out-width":"700px","output":"true","out-height":"","autorun":"","label":"","fig-width":7,"comment":"","fig-cap":""}}];


</script>
Expand Down Expand Up @@ -437,7 +437,7 @@
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
Expand Down
28 changes: 14 additions & 14 deletions examples/blog/search.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
[
{
"objectID": "index.html",
"href": "index.html",
"title": "blog",
"section": "",
"text": "Post With Interactive Code\n\n\n\n\n\n\nnews\n\n\ncode\n\n\nanalysis\n\n\n\n\n\n\n\n\n\nMar 12, 2024\n\n\nJames Balamuta\n\n\n\n\n\n\n\n\n\n\n\n\nPost Containing Slides with Interactive Python Code\n\n\n\n\n\n\nnews\n\n\ncode\n\n\nanalysis\n\n\n\n\n\n\n\n\n\nFeb 19, 2024\n\n\nJames Balamuta\n\n\n\n\n\n\nNo matching items"
},
{
"objectID": "posts/post-with-code/index.html",
"href": "posts/post-with-code/index.html",
"title": "Post With Interactive Code",
"section": "",
"text": "This is a post with interactive code on a Quarto Blog through the quarto-pyodide extension. The configuration setup for the quarto-pyodide extension is taken care of in the _quarto.yml file to avoid needing to re-specify options multiple times.\n\nPlease enable JavaScript to experience the dynamic code cell content on this page."
},
{
"objectID": "posts/embed-slides/index.html",
"href": "posts/embed-slides/index.html",
Expand All @@ -34,11 +20,25 @@
"section": "Embed Code",
"text": "Embed Code\nPlace the following code inside of the Quarto Document:\n&lt;style&gt;\n.slide-deck {\n border: 3px solid #dee2e6;\n width: 100%;\n height: 475px;\n}\n&lt;/style&gt;\n\n&lt;div&gt;\n```{=html}\n&lt;iframe class=\"slide-deck\" src=\"path/to/presentation/\"&gt;&lt;/iframe&gt;\n```\n&lt;/div&gt;"
},
{
"objectID": "index.html",
"href": "index.html",
"title": "blog",
"section": "",
"text": "Post With Interactive Code\n\n\n\n\n\n\nnews\n\n\ncode\n\n\nanalysis\n\n\n\n\n\n\n\n\n\nMar 12, 2024\n\n\nJames Balamuta\n\n\n\n\n\n\n\n\n\n\n\n\nPost Containing Slides with Interactive Python Code\n\n\n\n\n\n\nnews\n\n\ncode\n\n\nanalysis\n\n\n\n\n\n\n\n\n\nFeb 19, 2024\n\n\nJames Balamuta\n\n\n\n\n\n\nNo matching items"
},
{
"objectID": "about.html",
"href": "about.html",
"title": "About",
"section": "",
"text": "This blog is a demo showing how to use the quarto-pyodide extension."
},
{
"objectID": "posts/post-with-code/index.html",
"href": "posts/post-with-code/index.html",
"title": "Post With Interactive Code",
"section": "",
"text": "This is a post with interactive code on a Quarto Blog through the quarto-pyodide extension. The configuration setup for the quarto-pyodide extension is taken care of in the _quarto.yml file to avoid needing to re-specify options multiple times.\n\nPlease enable JavaScript to experience the dynamic code cell content on this page."
}
]
4 changes: 2 additions & 2 deletions examples/blog/site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions examples/blog/site_libs/quarto-html/quarto.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
window.innerHeight + window.pageYOffset >=
window.document.body.offsetHeight
) {
// This is the no-scroll case where last section should be the active one
sectionIndex = 0;
} else {
// This finds the last section visible on screen that should be made active
sectionIndex = [...sections].reverse().findIndex((section) => {
if (section) {
return window.pageYOffset >= section.offsetTop - sectionMargin;
Expand Down Expand Up @@ -317,6 +319,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
for (const child of el.children) {
child.style.opacity = 0;
child.style.overflow = "hidden";
child.style.pointerEvents = "none";
}

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

const clone = child.cloneNode(true);
clone.style.opacity = 1;
clone.style.pointerEvents = null;
clone.style.display = null;
toggleContents.append(clone);
}
Expand Down Expand Up @@ -432,6 +436,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
for (const child of el.children) {
child.style.opacity = 1;
child.style.overflow = null;
child.style.pointerEvents = null;
}

const placeholderEl = window.document.getElementById(
Expand Down Expand Up @@ -739,6 +744,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
// Process the collapse state if this is an UL
if (el.tagName === "UL") {
if (tocOpenDepth === -1 && depth > 1) {
// toc-expand: false
el.classList.add("collapse");
} else if (
depth <= tocOpenDepth ||
Expand All @@ -757,10 +763,9 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
};

// walk the TOC and expand / collapse any items that should be shown

if (tocEl) {
walk(tocEl, 0);
updateActiveLink();
walk(tocEl, 0);
}

// Throttle the scroll event and walk peridiocally
Expand All @@ -779,6 +784,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
window.addEventListener(
"resize",
throttle(() => {
if (tocEl) {
updateActiveLink();
walk(tocEl, 0);
}
if (!isReaderMode()) {
hideOverlappedSidebars();
}
Expand Down
16 changes: 8 additions & 8 deletions examples/book/example-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.5.28">
<meta name="generator" content="quarto-1.5.43">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -221,7 +221,7 @@

// Describe the webR settings that should be used
globalThis.qpyodideCustomizedPyodideOptions = {
"indexURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/full/",
"indexURL": "https://cdn.jsdelivr.net/pyodide/v0.26.1/full/",
"env": {
"HOME": "/home/pyodide",
},
Expand All @@ -230,7 +230,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"options":{"message":"true","dpi":72,"out-width":"700px","fig-height":5,"classes":"","read-only":"false","comment":"","fig-width":7,"output":"true","context":"interactive","warning":"true","out-height":"","fig-cap":"","autorun":"","label":"","results":"markup"},"id":1,"code":"import numpy as np\n\n# Data for plotting\nt = np.arange(0.0, 2.0, 0.01)\ns = 1 + np.sin(2 * np.pi * t)\n\n# Print t\nprint(f\"Displaying 10 observations of `t`:\\n{t[:10]}\\n\")\n\nprint(\"Showing the first 10 values of `s`:\")\n# The last object in the cell does not need print.\ns[:10]"},{"options":{"message":"true","dpi":72,"out-width":"700px","fig-height":5,"classes":"","read-only":"false","comment":"","fig-width":7,"output":"true","context":"interactive","warning":"true","out-height":"","fig-cap":"","autorun":"","label":"","results":"markup"},"id":2,"code":"import matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nax.plot(t, s)\n\nax.set(xlabel='time (s)', ylabel='voltage (mV)',\n title='About as simple as it gets, folks')\nax.grid()\n\nplt.show()"}];
globalThis.qpyodideCellDetails = [{"code":"import numpy as np\n\n# Data for plotting\nt = np.arange(0.0, 2.0, 0.01)\ns = 1 + np.sin(2 * np.pi * t)\n\n# Print t\nprint(f\"Displaying 10 observations of `t`:\\n{t[:10]}\\n\")\n\nprint(\"Showing the first 10 values of `s`:\")\n# The last object in the cell does not need print.\ns[:10]","options":{"warning":"true","comment":"","read-only":"false","message":"true","results":"markup","output":"true","label":"","fig-width":7,"fig-cap":"","dpi":72,"autorun":"","context":"interactive","fig-height":5,"out-width":"700px","out-height":"","classes":""},"id":1},{"code":"import matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nax.plot(t, s)\n\nax.set(xlabel='time (s)', ylabel='voltage (mV)',\n title='About as simple as it gets, folks')\nax.grid()\n\nplt.show()","options":{"warning":"true","comment":"","read-only":"false","message":"true","results":"markup","output":"true","label":"","fig-width":7,"fig-cap":"","dpi":72,"autorun":"","context":"interactive","fig-height":5,"out-width":"700px","out-height":"","classes":""},"id":2}];


</script>
Expand Down Expand Up @@ -430,13 +430,13 @@
<header id="quarto-header" class="headroom fixed-top">
<nav class="quarto-secondary-nav">
<div class="container-fluid d-flex">
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="./example-page.html">Exploring Python</a></li><li class="breadcrumb-item"><a href="./example-page.html"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Example page</span></a></li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<a class="flex-grow-1" role="navigation" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="" onclick="window.quartoOpenSearch();">
<button type="button" class="btn quarto-search-button" aria-label="Search" onclick="window.quartoOpenSearch();">
<i class="bi bi-search"></i>
</button>
</div>
Expand Down Expand Up @@ -474,9 +474,9 @@
</li>
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" aria-expanded="true">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" role="navigation" aria-expanded="true">
<span class="menu-text">Exploring Python</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" aria-expanded="true" aria-label="Toggle section">
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-1" role="navigation" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
</div>
Expand Down
Loading

0 comments on commit 763c099

Please sign in to comment.