diff --git a/.gitignore b/.gitignore index 96e2d35..65021f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,12 @@ .Rproj.user .Rhistory -.RData -.Ruserdata +.Rdata +.httr-oauth .DS_Store -public/* -*_files/* -*.rds +_book +_site +public +_freeze +/.quarto/ .Rbuildignore -*.bib.sav -r-cubed-intermediate.Rmd -data-raw/mmash/ -data-raw/mmash.R -_ignore -R/_ignore.R -slides/libs slides/*.html -/.quarto/ -_temp -_freeze diff --git a/_extensions/rostools/r3-theme/_extension.yml b/_extensions/rostools/r3-theme/_extension.yml index 87e776e..66d2151 100644 --- a/_extensions/rostools/r3-theme/_extension.yml +++ b/_extensions/rostools/r3-theme/_extension.yml @@ -1,18 +1,21 @@ title: r3-theme author: Luke W. Johnston -version: 1.0.5 -quarto-required: ">=1.3.0" +version: 1.0.6 +quarto-required: ">=1.5.0" contributes: format: html: highlight-style: a11y - code-line-numbers: true + 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 - code-link: true theme: - - zephyr + - yeti - custom-site.scss revealjs: @@ -28,8 +31,7 @@ contributes: project: project: type: book - output-dir: public - execute-dir: project + execute: project book: favicon: "favicon.ico" @@ -37,23 +39,13 @@ contributes: repo-actions: [edit, issue, source] search: true - execute: - warning: false - csl: vancouver.csl callout-appearance: minimal reference-location: margin + citation-location: margin crossref: chapters: true - knitr: - opts_chunk: - comment: "#>" - fig-dpi: 72 - fig-width: 5.5 - fig-height: 5 - fig-align: center - out-width: 100% - - format: r3-theme-html + execute: + freeze: auto diff --git a/_extensions/rostools/r3-theme/custom-site.scss b/_extensions/rostools/r3-theme/custom-site.scss index 993d408..1fe69ee 100644 --- a/_extensions/rostools/r3-theme/custom-site.scss +++ b/_extensions/rostools/r3-theme/custom-site.scss @@ -12,14 +12,6 @@ $font-size-root: 18px !default; /*-- scss:rules --*/ -svg { - display: block; - max-width: 100% !important; - margin: 0 auto; - height: auto !important; - width: auto !important; -} - .slide-deck { border: 3px solid #203C6E; width: 100%; diff --git a/justfile b/justfile new file mode 100644 index 0000000..aaef9a2 --- /dev/null +++ b/justfile @@ -0,0 +1,25 @@ +@_default: + just --list --unsorted + +# Run all recipes +run-all: install-dependencies spell-check style build-site + +# Install package dependencies +install-dependencies: + #!/usr/bin/Rscript + pak::pak(ask = FALSE) + +# Check spelling of Markdown files +spell-check: + #!/usr/bin/Rscript + files <- fs::dir_ls(here::here(), recurse = TRUE, regexp = "*\\.(md|qmd|Rmd)") + spelling::spell_check_files(files) + +# Style all R code +style: + #!/usr/bin/Rscript + styler::style_dir(here::here()) + +# Build pkgdown website +build-site: + quarto render