diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9eebc87..67fc37a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,17 +28,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: r-lib/actions/setup-r@v2 - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - packages: | - sysfonts - ggplot2 - ggtext - showtext - knitr - - uses: quarto-dev/quarto-actions/setup@v2 with: version: pre-release @@ -68,7 +57,7 @@ jobs: shell: bash run: npm install -g decktape - - name: Update Screenshot + - name: Take Screenshot shell: bash run: | decktape reveal \ @@ -78,7 +67,10 @@ jobs: --size "1920x1080" \ --slides 1 \ _site/index.html _site/index.pdf - + + - name: Update Screenshot + shell: bash + run: | mv _site/index_1_1920x1080.png .github/template.png BRANCH=ci/update-thumbs if git show-ref --quiet refs/heads/${BRANCH}; then diff --git a/_extensions/coeos/_code.qmd b/_extensions/coeos/_code.qmd new file mode 100644 index 0000000..0c53f31 --- /dev/null +++ b/_extensions/coeos/_code.qmd @@ -0,0 +1,35 @@ +```{r} +#| include: false +sysfonts::font_add_google("Alegreya Sans", "Alegreya Sans", regular.wt = 300) +showtext::showtext_auto() +source("_extensions/mcanouil/coeos/setup-ggplot2-coeos.R") +``` + +# PART 1 With `code` {.center .center-x} + +## Introduction + +### Subtitle + +`some code` and some text. +A URL [mickael.canouil.fr](https://mickael.canouil.fr/). + +```{r} +#| echo: true +1 + 1 +``` + +```{r} +#| echo: true +x <- 1 +y <- x + 1 +y +``` + +## GGPLOT2 With `code` + +```{r} +#| echo: true +library(ggplot2) +ggplot(mtcars, aes(wt, mpg)) + geom_point() +``` diff --git a/template.qmd b/template.qmd index d5159ea..ce4d5b7 100644 --- a/template.qmd +++ b/template.qmd @@ -8,43 +8,7 @@ embed-resources: false format: coeos-revealjs --- -```{r} -#| include: false -sysfonts::font_add_google("Alegreya Sans", "Alegreya Sans", regular.wt = 300) -showtext::showtext_auto() -source("_extensions/mcanouil/coeos/setup-ggplot2-coeos.R") -``` - -# PART 1 With `code` {.center .center-x} - -## Introduction - -### Subtitle - -`some code` and some text. -A URL [mickael.canouil.fr](https://mickael.canouil.fr/). - -```{r} -#| echo: true -1 + 1 -``` - -```{r} -#| echo: true -x <- 1 -y <- x + 1 -y -``` - -## GGPLOT2 With `code` - -```{r} -#| echo: true -library(ggplot2) -ggplot(mtcars, aes(wt, mpg)) + geom_point() -``` - -# PART 2 Without `code` {.center .center-x} +# PART 1 Without `code` {.center .center-x} ## New slide {.smaller}