From 62fd3ed5306c5033acae88cfe4dda6d23e5bf289 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Fri, 15 Nov 2024 13:32:32 +0100 Subject: [PATCH] chore: :truck: use symlink of extension file (#94) ## Description This change is done to simplify the build of the slides, by using a symlink of the extensions folder into the slides folder. The reason being is that when rendering a Quarto doc on its own (which we need to do for the slides for book projects since slides aren't usable in books), Quarto needs the extension in the same location as the doc. Hence, using the symlink. ## Reviewer Focus This PR needs a quick review. --- _build-slides.sh | 9 - _quarto.yml | 1 - slides/_extensions | 1 + slides/_extensions/r3-theme/_extension.yml | 51 --- slides/_extensions/r3-theme/custom-site.scss | 23 -- .../_extensions/r3-theme/custom-slides.scss | 53 --- slides/_extensions/r3-theme/favicon.ico | Bin 15086 -> 0 bytes slides/_extensions/r3-theme/vancouver.csl | 351 ------------------ 8 files changed, 1 insertion(+), 488 deletions(-) delete mode 100644 _build-slides.sh create mode 120000 slides/_extensions delete mode 100644 slides/_extensions/r3-theme/_extension.yml delete mode 100644 slides/_extensions/r3-theme/custom-site.scss delete mode 100644 slides/_extensions/r3-theme/custom-slides.scss delete mode 100644 slides/_extensions/r3-theme/favicon.ico delete mode 100644 slides/_extensions/r3-theme/vancouver.csl diff --git a/_build-slides.sh b/_build-slides.sh deleted file mode 100644 index 4747a77..0000000 --- a/_build-slides.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# This script is to fix an issue with using extensions when trying -# to render a qmd outside of the project specs. Specifically, for -# creating slides. -cp slides/introduction.qmd _introduction.qmd - -quarto render _introduction.qmd --to r3-theme-revealjs - -mv _introduction.html slides/introduction.html diff --git a/_quarto.yml b/_quarto.yml index 0e0ea12..67ac4ba 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -1,6 +1,5 @@ project: type: r3-theme - # pre-render: bash _build-slides.sh # resources: # - slides/*.html diff --git a/slides/_extensions b/slides/_extensions new file mode 120000 index 0000000..41f7586 --- /dev/null +++ b/slides/_extensions @@ -0,0 +1 @@ +../_extensions \ No newline at end of file diff --git a/slides/_extensions/r3-theme/_extension.yml b/slides/_extensions/r3-theme/_extension.yml deleted file mode 100644 index 66d2151..0000000 --- a/slides/_extensions/r3-theme/_extension.yml +++ /dev/null @@ -1,51 +0,0 @@ -title: r3-theme -author: Luke W. Johnston -version: 1.0.6 -quarto-required: ">=1.5.0" -contributes: - format: - html: - highlight-style: a11y - fig-dpi: 72 - fig-width: 5.5 - fig-height: 5 - fig-align: center - df-print: tibble - code-link: true - code-overflow: scroll - from: markdown+emoji - theme: - - yeti - - custom-site.scss - - revealjs: - embed-resources: true - from: markdown+emoji - theme: - - simple - - custom-slides.scss - menu: true - progress: true - logo: favicon.ico - - project: - project: - type: book - execute: project - - book: - favicon: "favicon.ico" - repo-branch: main - repo-actions: [edit, issue, source] - search: true - - csl: vancouver.csl - - callout-appearance: minimal - reference-location: margin - citation-location: margin - crossref: - chapters: true - - execute: - freeze: auto diff --git a/slides/_extensions/r3-theme/custom-site.scss b/slides/_extensions/r3-theme/custom-site.scss deleted file mode 100644 index 1fe69ee..0000000 --- a/slides/_extensions/r3-theme/custom-site.scss +++ /dev/null @@ -1,23 +0,0 @@ -/*-- scss:defaults --*/ - -@import url('https://fonts.googleapis.com/css2?family=Cabin'); -@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic'); -@import url('https://fonts.googleapis.com/css2?family=PT+Mono'); - -$font-family-monospace: "PT Mono", monospace !default; -$font-family-serif: "Nanum Gothic", sans-serif !default; -$font-family-sans-serif: "Nanum Gothic", sans-serif !default; -$headings-font-family: "Cabin", sans-serif !default; -$font-size-root: 18px !default; - -/*-- scss:rules --*/ - -.slide-deck { - border: 3px solid #203C6E; - width: 100%; - height: 425px; -} - -kbd { - padding: .15rem .15rem; -} diff --git a/slides/_extensions/r3-theme/custom-slides.scss b/slides/_extensions/r3-theme/custom-slides.scss deleted file mode 100644 index acf3df5..0000000 --- a/slides/_extensions/r3-theme/custom-slides.scss +++ /dev/null @@ -1,53 +0,0 @@ -/*-- scss:defaults --*/ - -@import url(https://fonts.googleapis.com/css?family=Quicksand&display=swap); -@import url(https://fonts.googleapis.com/css?family=Outfit&display=swap); -@import url(https://fonts.googleapis.com/css2?family=PT+Mono); - -$font-family-serif: "Quicksand", sans-serif !default; -$font-family-sans-serif: "Quicksand", sans-serif !default; -$font-family-monospace: "PT Mono", monospace !default; -$presentation-heading-font: "Outfit", sans-serif !default; - -/* -From litera: -$primary: #4582ec !default; -$secondary: #adb5bd !default; -*/ - -/* -# For background -monochromeR::generate_palette("#ffffff", "go_darker", n_colours = 20, view_palette = TRUE) -# For headers (primary) -monochromeR::generate_palette("#4582ec", "go_darker", n_colours = 4, view_palette = TRUE) -# For links -monochromeR::generate_palette("#4582ec", "go_lighter", n_colours = 4, view_palette = TRUE) -*/ - -$primary: #203C6E !default; -$secondary: #adb5bd !default; - -$presentation-heading-color: $primary !default; - -$presentation-font-size-root: 35px !default; -$presentation-h2-font-size: 2em !default; -$body-bg: #E9E9E9 !default; -$link-color: #4582ec !default; -/* sets color of controls as well as links */ -/* -$body-color: #403E4A; -$highlight-color: #574997; -$selection-bg: #9A91C0; -*/ - -/*-- scss:rules --*/ - -.reveal .progress { - height: 8px; - color: $primary; - top: 0; -} - -.reveal .slide-logo { - top: 0; -} diff --git a/slides/_extensions/r3-theme/favicon.ico b/slides/_extensions/r3-theme/favicon.ico deleted file mode 100644 index fe3f25ba4b8222c82d4cd3aebdc33bfd69caa051..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeI23y_s%9f!Z;iYOHeN*F2brjnMW$aGOd7s0X7$|lVwFBw#p)eI4tSmaY-%QjsL*nE#T#C5DM>)$^gMgcOK%_Nw&yl9!++-4_x}EW z-}}9{@60AiCTU5gPE82glOIk=lD8#E(%zm=k4utA$s0##`DObjNe>l{r4CJ!*#~@3&#Q&t z{Hll5L%(BwA}ojPP)xh|x5Id-m(`-*JLNRE9*Uh$@v}TYy(v&nt3sp`G2LYKmC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