Skip to content

Commit

Permalink
Deploying to gh-pages from @ 08d7927 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 23, 2024
1 parent ba8c999 commit 31bb1d4
Show file tree
Hide file tree
Showing 75 changed files with 2,416 additions and 986 deletions.
31 changes: 27 additions & 4 deletions demos/qwebr-auto-run.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.9">
<meta name="generator" content="quarto-1.5.20">

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

Expand Down Expand Up @@ -275,7 +275,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"options":{"comment":"","fig-width":7,"dpi":72,"warning":"true","label":"unnamed-chunk-1","results":"markup","output":"true","autorun":"false","classes":"","fig-cap":"","context":"interactive","message":"true","out-height":"","fig-height":5,"out-width":"700px"},"id":1,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"options":{"comment":"","fig-width":7,"dpi":72,"warning":"true","label":"unnamed-chunk-2","results":"markup","output":"true","autorun":"true","classes":"","fig-cap":"","context":"interactive","message":"true","out-height":"","fig-height":5,"out-width":"700px"},"id":2,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))"},{"options":{"comment":"","fig-width":7,"dpi":72,"warning":"true","label":"unnamed-chunk-3","results":"markup","output":"true","autorun":"true","classes":"","fig-cap":"","context":"output","message":"true","out-height":"","fig-height":5,"out-width":"700px"},"id":3,"code":"data(\"gapminder\", package = \"gapminder\")\nhead(gapminder)"},{"options":{"comment":"","fig-width":"5","dpi":72,"warning":"true","label":"unnamed-chunk-4","results":"markup","output":"true","autorun":"true","classes":"","fig-cap":"","context":"output","message":"true","out-height":"","fig-height":"3","out-width":"500px"},"id":4,"code":"ggplot(gapminder, aes(lifeExp)) + \n geom_density(aes(fill=continent), alpha=1/4) + theme_bw() "},{"options":{"comment":"","fig-width":"5","dpi":72,"warning":"true","label":"unnamed-chunk-5","results":"markup","output":"true","autorun":"true","classes":"","fig-cap":"","context":"interactive","message":"true","out-height":"","fig-height":"3","out-width":"500px"},"id":5,"code":"ggplot(gapminder, aes(lifeExp)) + \n theme_bw() "}];
globalThis.qwebrCellDetails = [{"id":1,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","options":{"message":"true","comment":"","autorun":"false","results":"markup","context":"interactive","output":"true","read-only":"false","warning":"true","fig-height":5,"dpi":72,"classes":"","out-width":"700px","fig-width":7,"label":"unnamed-chunk-1","fig-cap":"","out-height":""}},{"id":2,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","options":{"message":"true","comment":"","autorun":"true","results":"markup","context":"interactive","output":"true","read-only":"false","warning":"true","fig-height":5,"dpi":72,"classes":"","out-width":"700px","fig-width":7,"label":"unnamed-chunk-2","fig-cap":"","out-height":""}},{"id":3,"code":"data(\"gapminder\", package = \"gapminder\")\nhead(gapminder)","options":{"message":"true","comment":"","autorun":"true","results":"markup","context":"output","output":"true","read-only":"false","warning":"true","fig-height":5,"dpi":72,"classes":"","out-width":"700px","fig-width":7,"label":"unnamed-chunk-3","fig-cap":"","out-height":""}},{"id":4,"code":"ggplot(gapminder, aes(lifeExp)) + \n geom_density(aes(fill=continent), alpha=1/4) + theme_bw() ","options":{"message":"true","comment":"","autorun":"true","results":"markup","context":"output","output":"true","read-only":"false","warning":"true","fig-height":"3","dpi":72,"classes":"","out-width":"500px","fig-width":"5","label":"unnamed-chunk-4","fig-cap":"","out-height":""}},{"id":5,"code":"ggplot(gapminder, aes(lifeExp)) + \n theme_bw() ","options":{"message":"true","comment":"","autorun":"true","results":"markup","context":"interactive","output":"true","read-only":"false","warning":"true","fig-height":"3","dpi":72,"classes":"","out-width":"500px","fig-width":"5","label":"unnamed-chunk-5","fig-cap":"","out-height":""}}];

</script>
<script type="module">
Expand Down Expand Up @@ -1276,7 +1276,8 @@ <h2 id="toc-title">On this page</h2>
},
fontSize: '17.5pt', // Bootstrap is 1 rem
renderLineHighlight: "none", // Disable current line highlighting
hideCursorInOverviewRuler: true // Remove cursor indictor in right hand side scroll bar
hideCursorInOverviewRuler: true, // Remove cursor indictor in right hand side scroll bar
readOnly: qwebrOptions['read-only'] ?? false
});

// Store the official counter ID to be used in keyboard shortcuts
Expand Down Expand Up @@ -1622,6 +1623,24 @@ <h1>Fin</h1>
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
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; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
Expand Down Expand Up @@ -1656,7 +1675,11 @@ <h1>Fin</h1>
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');
Expand Down
31 changes: 27 additions & 4 deletions demos/qwebr-code-cell-options.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.9">
<meta name="generator" content="quarto-1.5.20">

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

Expand Down Expand Up @@ -275,7 +275,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"options":{"autorun":"false","fig-width":7,"results":"markup","label":"unnamed-chunk-1","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"interactive","message":"true","fig-height":5,"warning":"true"},"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","id":1},{"options":{"autorun":"true","fig-width":7,"results":"markup","label":"unnamed-chunk-2","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"setup","message":"true","fig-height":5,"warning":"true"},"code":" \n# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)","id":2},{"options":{"autorun":"false","fig-width":7,"results":"asis","label":"unnamed-chunk-3","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"interactive","message":"true","fig-height":5,"warning":"true"},"code":"knitr::kable(data, \"html\")","id":3},{"options":{"autorun":"false","fig-width":7,"results":"markup","label":"unnamed-chunk-4","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"interactive","message":"true","fig-height":5,"warning":"true"},"code":"knitr::kable(data, \"html\")","id":4},{"options":{"autorun":"true","fig-width":"6","results":"markup","label":"unnamed-chunk-5","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"output","message":"true","fig-height":"6","warning":"true"},"code":"\ntinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":5},{"options":{"autorun":"true","fig-width":7,"results":"markup","label":"unnamed-chunk-6","dpi":72,"comment":"","output":"true","out-width":"700px","classes":"","out-height":"","fig-cap":"","context":"output","message":"true","fig-height":5,"warning":"true"},"code":"\ntinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":6},{"options":{"autorun":"true","fig-width":"6","results":"markup","label":"unnamed-chunk-7","dpi":72,"comment":"","output":"true","out-width":"500px","classes":"","out-height":"500px","fig-cap":"","context":"output","message":"true","fig-height":"6","warning":"true"},"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","id":7}];
globalThis.qwebrCellDetails = [{"id":1,"code":"# Write your name here by replace ___\nname <- \"_____\"\nprint(paste0(\"Hello, \", name, \"!\"))","options":{"warning":"true","label":"unnamed-chunk-1","dpi":72,"autorun":"false","fig-height":5,"comment":"","message":"true","results":"markup","read-only":"false","fig-width":7,"classes":"","fig-cap":"","out-width":"700px","context":"interactive","output":"true","out-height":""}},{"id":2,"code":" \n# Generating a simple table\ndata <- data.frame(\n Name = c(\"Alice\", \"Bob\", \"Charlie\"),\n Age = c(25, 30, 22)\n)","options":{"warning":"true","label":"unnamed-chunk-2","dpi":72,"autorun":"true","fig-height":5,"comment":"","message":"true","results":"markup","read-only":"false","fig-width":7,"classes":"","fig-cap":"","out-width":"700px","context":"setup","output":"true","out-height":""}},{"id":3,"code":"knitr::kable(data, \"html\")","options":{"warning":"true","label":"unnamed-chunk-3","dpi":72,"autorun":"false","fig-height":5,"comment":"","message":"true","results":"asis","read-only":"false","fig-width":7,"classes":"","fig-cap":"","out-width":"700px","context":"interactive","output":"true","out-height":""}},{"id":4,"code":"knitr::kable(data, \"html\")","options":{"warning":"true","label":"unnamed-chunk-4","dpi":72,"autorun":"false","fig-height":5,"comment":"","message":"true","results":"markup","read-only":"false","fig-width":7,"classes":"","fig-cap":"","out-width":"700px","context":"interactive","output":"true","out-height":""}},{"id":5,"code":"\ntinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","options":{"warning":"true","label":"unnamed-chunk-5","dpi":72,"autorun":"true","fig-height":"6","comment":"","message":"true","results":"markup","read-only":"false","fig-width":"6","classes":"","fig-cap":"","out-width":"700px","context":"output","output":"true","out-height":""}},{"id":6,"code":"\ntinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","options":{"warning":"true","label":"unnamed-chunk-6","dpi":72,"autorun":"true","fig-height":5,"comment":"","message":"true","results":"markup","read-only":"false","fig-width":7,"classes":"","fig-cap":"","out-width":"700px","context":"output","output":"true","out-height":""}},{"id":7,"code":"tinyplot::tinyplot(\n ~ Petal.Length | Species,\n data = iris,\n type = \"density\",\n palette = \"dark\", fill = \"by\",\n grid = TRUE,\n main = \"Distribution of petal lengths by species\"\n)","options":{"warning":"true","label":"unnamed-chunk-7","dpi":72,"autorun":"true","fig-height":"6","comment":"","message":"true","results":"markup","read-only":"false","fig-width":"6","classes":"","fig-cap":"","out-width":"500px","context":"output","output":"true","out-height":"500px"}}];

</script>
<script type="module">
Expand Down Expand Up @@ -1278,7 +1278,8 @@ <h2 id="toc-title">On this page</h2>
},
fontSize: '17.5pt', // Bootstrap is 1 rem
renderLineHighlight: "none", // Disable current line highlighting
hideCursorInOverviewRuler: true // Remove cursor indictor in right hand side scroll bar
hideCursorInOverviewRuler: true, // Remove cursor indictor in right hand side scroll bar
readOnly: qwebrOptions['read-only'] ?? false
});

// Store the official counter ID to be used in keyboard shortcuts
Expand Down Expand Up @@ -1704,6 +1705,24 @@ <h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
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; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
Expand Down Expand Up @@ -1738,7 +1757,11 @@ <h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
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');
Expand Down
31 changes: 27 additions & 4 deletions demos/qwebr-custom-repository.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.9">
<meta name="generator" content="quarto-1.5.20">

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

Expand Down Expand Up @@ -275,7 +275,7 @@
};

// Store cell data
globalThis.qwebrCellDetails = [{"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr","options":{"fig-width":7,"results":"markup","comment":"","out-height":"","output":"true","dpi":72,"autorun":"false","label":"unnamed-chunk-1","fig-cap":"","message":"true","classes":"","warning":"true","out-width":"700px","fig-height":5,"context":"interactive"},"id":1}];
globalThis.qwebrCellDetails = [{"options":{"results":"markup","output":"true","autorun":"false","label":"unnamed-chunk-1","comment":"","context":"interactive","fig-width":7,"read-only":"false","dpi":72,"warning":"true","fig-cap":"","classes":"","message":"true","out-width":"700px","out-height":"","fig-height":5},"code":"# Check to see if the function works\ndemorwasmbinary::in_webr()\n\n# View help documentation\n?demorwasmbinary::in_webr","id":1}];

</script>
<script type="module">
Expand Down Expand Up @@ -1276,7 +1276,8 @@ <h2 id="toc-title">On this page</h2>
},
fontSize: '17.5pt', // Bootstrap is 1 rem
renderLineHighlight: "none", // Disable current line highlighting
hideCursorInOverviewRuler: true // Remove cursor indictor in right hand side scroll bar
hideCursorInOverviewRuler: true, // Remove cursor indictor in right hand side scroll bar
readOnly: qwebrOptions['read-only'] ?? false
});

// Store the official counter ID to be used in keyboard shortcuts
Expand Down Expand Up @@ -1561,6 +1562,24 @@ <h1>Explore the package</h1>
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
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; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
Expand Down Expand Up @@ -1595,7 +1614,11 @@ <h1>Explore the package</h1>
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');
Expand Down
26 changes: 24 additions & 2 deletions demos/qwebr-feature-demos.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.9">
<meta name="generator" content="quarto-1.5.20">

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

Expand Down Expand Up @@ -420,6 +420,24 @@ <h1 class="title">Feature Demonstrations</h1>
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
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; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
Expand Down Expand Up @@ -454,7 +472,11 @@ <h1 class="title">Feature Demonstrations</h1>
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');
Expand Down
Loading

0 comments on commit 31bb1d4

Please sign in to comment.