From a8358b7d7a6f60c1d42732d6d82d3b8979b58fcd Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:38:57 -0400 Subject: [PATCH 1/4] add dependencies to actions --- .github/workflows/quarto.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/quarto.yml b/.github/workflows/quarto.yml index c761220..52b7323 100644 --- a/.github/workflows/quarto.yml +++ b/.github/workflows/quarto.yml @@ -32,6 +32,8 @@ jobs: any::here any::knitr any::rmarkdown + any::thematic + any::ggplot2 - name: Publish to GitHub Pages (and render) uses: quarto-dev/quarto-actions/publish@v2 From 292882f351c74164ef6ae7312986f80a624763d8 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:50:08 -0400 Subject: [PATCH 2/4] embedding background in custom theme scss to avoid quarto bug --- _extensions/pharmaR/rvalhub/_extension.yml | 27 +++++++++++++++------- _extensions/pharmaR/rvalhub/custom.scss | 1 + 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/_extensions/pharmaR/rvalhub/_extension.yml b/_extensions/pharmaR/rvalhub/_extension.yml index df258f4..f56d103 100644 --- a/_extensions/pharmaR/rvalhub/_extension.yml +++ b/_extensions/pharmaR/rvalhub/_extension.yml @@ -6,11 +6,10 @@ contributes: formats: revealjs: # general - - self-contained: true + embed-resources: true theme: [default, custom.scss, custom-light.scss] template-partials: - - revealjs-assets/title-slide.html + - revealjs-assets/title-slide.html # code highlight-style: arrow @@ -19,11 +18,15 @@ contributes: # assets logo: assets/logo.svg - background-image: assets/swirling-margins.svg + ## NOTE: + ## background-image embedding currently ignored + ## encoded in custom.scss `.reveal .backgrounds { background-image: }` instead + ## https://github.com/quarto-dev/quarto-cli/issues/980 + # background-image: assets/swirling-margins.svg revealjs+light: # general - self-contained: true + embed-resources: true theme: [default, custom.scss, custom-light.scss] template-partials: - revealjs-assets/title-slide.html @@ -35,11 +38,15 @@ contributes: # assets logo: assets/logo.svg - background-image: assets/swirling-margins.svg + ## NOTE: + ## background-image embedding currently ignored + ## encoded in custom.scss `.reveal .backgrounds { background-image: }` instead + ## https://github.com/quarto-dev/quarto-cli/issues/980 + # background-image: assets/swirling-margins.svg revealjs+dark: # general - self-contained: true + embed-resources: true theme: [dark, custom.scss, custom-dark.scss] template-partials: - revealjs-assets/title-slide.html @@ -51,4 +58,8 @@ contributes: # assets logo: assets/logo.svg - background-image: assets/swirling-margins.svg + ## NOTE: + ## background-image embedding currently ignored + ## encoded in custom.scss `.reveal .backgrounds { background-image: }` instead + ## https://github.com/quarto-dev/quarto-cli/issues/980 + # background-image: assets/swirling-margins.svg diff --git a/_extensions/pharmaR/rvalhub/custom.scss b/_extensions/pharmaR/rvalhub/custom.scss index 461e2c0..16170db 100644 --- a/_extensions/pharmaR/rvalhub/custom.scss +++ b/_extensions/pharmaR/rvalhub/custom.scss @@ -17,6 +17,7 @@ $code-block-border-color: transparent; .backgrounds { background-size: cover; background-position-y: center; + background-image: url('data:image/svg+xml,'); } .slide-logo { From 2eb03ea61059d10271fe4ca6a6c3eeb5faa8b82f Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:56:37 -0400 Subject: [PATCH 3/4] update README to include link to live slides --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 09687ef..f6955d0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # R Validation Hub `quarto` Theme +[_view an example slidedeck in your browser_](https://pharmar.github.io/rvalhub-quarto) + [preview.webm](https://github.com/pharmaR/rvalhub-quarto/assets/18220321/cfc056b1-a0d2-411b-be87-aa81f4fdae30) `format: rvalhub-revealjs+light` (or default alias, `rvalhub-revealjs`) From f8e473166ce9d9f92ef9030c4d23f8a49fdf8cd2 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 6 Jun 2024 19:57:58 -0400 Subject: [PATCH 4/4] update instructions at bottom of README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f6955d0..2aa5964 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ quarto create # follow prompts to start a default project 2. Add `quarto` format extension ``` -quarto add pharmaR/rvalhub-quarto +quarto install extension pharmaR/rvalhub-quarto ``` 3. Update your `_quarto.yml` file