Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔄 synced file(s) with rostools/r3-theme #98

Merged
merged 3 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
32 changes: 12 additions & 20 deletions _extensions/rostools/r3-theme/_extension.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -28,32 +31,21 @@ contributes:
project:
project:
type: book
output-dir: public
execute-dir: project
execute: project

book:
favicon: "favicon.ico"
repo-branch: main
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
8 changes: 0 additions & 8 deletions _extensions/rostools/r3-theme/custom-site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
Expand Down
25 changes: 25 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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