Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jun 24, 2024
1 parent e69942b commit 771ed2c
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 198 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d25c12de
42762346
198 changes: 115 additions & 83 deletions index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sitemap: https://github.com/edavidaja/you-should-use-renv/sitemap.xml
Sitemap: https://edavidaja.github.io/you-should-use-renv/sitemap.xml
154 changes: 77 additions & 77 deletions search.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,4 @@
[
{
"objectID": "workshop.html#sermon",
"href": "workshop.html#sermon",
"title": "you-should-use-renv",
"section": "sermon",
"text": "sermon\nyou should use renv."
},
{
"objectID": "workshop.html#commandment",
"href": "workshop.html#commandment",
"title": "you-should-use-renv",
"section": "commandment",
"text": "commandment\nprojects should be reproducible.\n\nprojects, for the purpose of this workshop, are anything you want to share that isn’t an R package–shiny app, plumber API, quarto doc\nreproducibility is a layered, spectral concept rather than a binary\nthe goal is for the project to be reproducible to the maximum extent possible"
},
{
"objectID": "workshop.html#on-repositories",
"href": "workshop.html#on-repositories",
"title": "you-should-use-renv",
"section": "on repositories",
"text": "on repositories\nrenv: custom R package repositories"
},
{
"objectID": "workshop.html#get",
"href": "workshop.html#get",
"title": "you-should-use-renv",
"section": "get",
"text": "get\n> options(\"repos\")\n$repos\n CRAN \n\"https://packagemanager.posit.co/cran/latest\""
},
{
"objectID": "workshop.html#set",
"href": "workshop.html#set",
"title": "you-should-use-renv",
"section": "set:",
"text": "set:\nposit public package manager (p3m)\noptions(repos = c(CRAN = \"https://p3m.dev/cran/latest\"))\noptions(\"repos\")"
},
{
"objectID": "workshop.html#set-statcan",
"href": "workshop.html#set-statcan",
"title": "you-should-use-renv",
"section": "set: StatCan",
"text": "set: StatCan\noptions(repos = c(artifactory = \"https://username:password@artifactory.ourinternalurl.ca/artifactory/cran-remote\"))"
},
{
"objectID": "workshop.html#fetch-examples",
"href": "workshop.html#fetch-examples",
"title": "you-should-use-renv",
"section": "fetch examples",
"text": "fetch examples\nusethis::use_zip(\"https://gitlab.com/edavidaja/renv-workshop/-/archive/main/renv-workshop-main.zip\")\nor\ngit clone https://gitlab.com/edavidaja/renv-workshop"
},
{
"objectID": "workshop.html#new-project",
"href": "workshop.html#new-project",
"title": "you-should-use-renv",
"section": "new project",
"text": "new project"
},
{
"objectID": "workshop.html#existing-project",
"href": "workshop.html#existing-project",
"title": "you-should-use-renv",
"section": "existing project",
"text": "existing project"
},
{
"objectID": "workshop.html#old-project",
"href": "workshop.html#old-project",
"title": "you-should-use-renv",
"section": "old project",
"text": "old project\nan old shiny app"
},
{
"objectID": "workshop.html#r-version-migration",
"href": "workshop.html#r-version-migration",
"title": "you-should-use-renv",
"section": "R version migration",
"text": "R version migration\nrig"
},
{
"objectID": "index.html#we-have-a-standards-problem",
"href": "index.html#we-have-a-standards-problem",
Expand Down Expand Up @@ -306,5 +229,82 @@
"title": "you-should-use-renv",
"section": "we have an opportunity",
"text": "we have an opportunity\nLet’s coalesce on a project standard.\n\nUse renv."
},
{
"objectID": "workshop.html#sermon",
"href": "workshop.html#sermon",
"title": "you-should-use-renv",
"section": "sermon",
"text": "sermon\nyou should use renv."
},
{
"objectID": "workshop.html#commandment",
"href": "workshop.html#commandment",
"title": "you-should-use-renv",
"section": "commandment",
"text": "commandment\nprojects should be reproducible.\n\nprojects, for the purpose of this workshop, are anything you want to share that isn’t an R package–shiny app, plumber API, quarto doc\nreproducibility is a layered, spectral concept rather than a binary\nthe goal is for the project to be reproducible to the maximum extent possible"
},
{
"objectID": "workshop.html#on-repositories",
"href": "workshop.html#on-repositories",
"title": "you-should-use-renv",
"section": "on repositories",
"text": "on repositories\nrenv: custom R package repositories"
},
{
"objectID": "workshop.html#get",
"href": "workshop.html#get",
"title": "you-should-use-renv",
"section": "get",
"text": "get\n> options(\"repos\")\n$repos\n CRAN \n\"https://packagemanager.posit.co/cran/latest\""
},
{
"objectID": "workshop.html#set",
"href": "workshop.html#set",
"title": "you-should-use-renv",
"section": "set:",
"text": "set:\nposit public package manager (p3m)\noptions(repos = c(CRAN = \"https://p3m.dev/cran/latest\"))\noptions(\"repos\")"
},
{
"objectID": "workshop.html#set-posit-package-manager",
"href": "workshop.html#set-posit-package-manager",
"title": "you-should-use-renv",
"section": "set: posit package manager",
"text": "set: posit package manager\noptions(repos = c(ppm = \"https://packagemanager.example.com/cran/__linux__/jammy/latest\"))"
},
{
"objectID": "workshop.html#fetch-examples",
"href": "workshop.html#fetch-examples",
"title": "you-should-use-renv",
"section": "fetch examples",
"text": "fetch examples\nusethis::use_zip(\"edavidaja/renv-workshop\")\nor\ngit clone https://gitlab.com/edavidaja/renv-workshop"
},
{
"objectID": "workshop.html#new-project",
"href": "workshop.html#new-project",
"title": "you-should-use-renv",
"section": "new project",
"text": "new project"
},
{
"objectID": "workshop.html#existing-project",
"href": "workshop.html#existing-project",
"title": "you-should-use-renv",
"section": "existing project",
"text": "existing project"
},
{
"objectID": "workshop.html#old-project",
"href": "workshop.html#old-project",
"title": "you-should-use-renv",
"section": "old project",
"text": "old project\nan old shiny app"
},
{
"objectID": "workshop.html#r-version-migration",
"href": "workshop.html#r-version-migration",
"title": "you-should-use-renv",
"section": "R version migration",
"text": "R version migration\nrig"
}
]
4 changes: 2 additions & 2 deletions site_libs/quarto-html/popper.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site_libs/quarto-html/quarto-html.min.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/*# sourceMappingURL=0a6b880beb84f9b6f36107a76f82c5b1.css.map */

7 changes: 5 additions & 2 deletions site_libs/revealjs/dist/theme/quarto.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ window.QuartoLineHighlight = function () {
divSourceCode.forEach((el) => {
if (el.hasAttribute(kCodeLineNumbersAttr)) {
const codeLineAttr = el.getAttribute(kCodeLineNumbersAttr);
el.removeAttribute("data-code-line-numbers");
el.removeAttribute(kCodeLineNumbersAttr);
if (handleLinesSelector(deck, codeLineAttr)) {
// Only process if attr is a string to select lines to highlights
// e.g "1|3,6|8-11"
Expand Down Expand Up @@ -165,17 +165,17 @@ window.QuartoLineHighlight = function () {
if (typeof highlight.last === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(n+" +
":scope > span:nth-of-type(n+" +
highlight.first +
"):nth-child(-n+" +
"):nth-of-type(-n+" +
highlight.last +
")"
)
);
} else if (typeof highlight.first === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(" + highlight.first + ")"
":scope > span:nth-of-type(" + highlight.first + ")"
)
);
}
Expand Down
34 changes: 32 additions & 2 deletions site_libs/revealjs/plugin/quarto-support/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ window.QuartoSupport = function () {
return /print-pdf/gi.test(window.location.search);
}

// helper for theme toggling
function toggleBackgroundTheme(el, onDarkBackground, onLightBackground) {
if (onDarkBackground) {
el.classList.add('has-dark-background')
} else {
el.classList.remove('has-dark-background')
}
if (onLightBackground) {
el.classList.add('has-light-background')
} else {
el.classList.remove('has-light-background')
}
}

// implement controlsAudo
function controlsAuto(deck) {
const config = deck.getConfig();
Expand Down Expand Up @@ -111,8 +125,19 @@ window.QuartoSupport = function () {
}
}

// add footer text
function addFooter(deck) {
// tweak slide-number element
function tweakSlideNumber(deck) {
deck.on("slidechanged", function (ev) {
const revealParent = deck.getRevealElement();
const slideNumberEl = revealParent.querySelector(".slide-number");
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background');
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background');
toggleBackgroundTheme(slideNumberEl, onDarkBackground, onLightBackground);
})
}

// add footer text
function addFooter(deck) {
const revealParent = deck.getRevealElement();
const defaultFooterDiv = document.querySelector(".footer-default");
if (defaultFooterDiv) {
Expand All @@ -127,13 +152,17 @@ window.QuartoSupport = function () {
prevSlideFooter.remove();
}
const currentSlideFooter = ev.currentSlide.querySelector(".footer");
const onDarkBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-dark-background')
const onLightBackground = Reveal.getSlideBackground(ev.indexh, ev.indexv).classList.contains('has-light-background')
if (currentSlideFooter) {
defaultFooterDiv.style.display = "none";
const slideFooter = currentSlideFooter.cloneNode(true);
handleLinkClickEvents(deck, slideFooter);
deck.getRevealElement().appendChild(slideFooter);
toggleBackgroundTheme(slideFooter, onDarkBackground, onLightBackground)
} else {
defaultFooterDiv.style.display = "block";
toggleBackgroundTheme(defaultFooterDiv, onDarkBackground, onLightBackground)
}
});
}
Expand Down Expand Up @@ -280,6 +309,7 @@ window.QuartoSupport = function () {
fixupForPrint(deck);
applyGlobalStyles(deck);
addLogoImage(deck);
tweakSlideNumber(deck);
addFooter(deck);
addChalkboardButtons(deck);
handleTabbyClicks();
Expand Down
8 changes: 4 additions & 4 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://github.com/edavidaja/you-should-use-renv/workshop.html</loc>
<lastmod>2024-01-19T17:05:38.702Z</lastmod>
<loc>https://edavidaja.github.io/you-should-use-renv/index.html</loc>
<lastmod>2024-06-24T18:55:53.096Z</lastmod>
</url>
<url>
<loc>https://github.com/edavidaja/you-should-use-renv/index.html</loc>
<lastmod>2024-01-19T17:05:38.258Z</lastmod>
<loc>https://edavidaja.github.io/you-should-use-renv/workshop.html</loc>
<lastmod>2024-06-24T18:55:53.096Z</lastmod>
</url>
</urlset>
Loading

0 comments on commit 771ed2c

Please sign in to comment.