Skip to content

Commit

Permalink
Enable embed-resources for quarto vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Feb 21, 2024
1 parent b1b0da6 commit c171da3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/articles.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ template_file <- function(path){
system.file('rmd-template', path, package = 'buildtools', mustWork = TRUE)
}

# quarto html format parameters: https://quarto.org/docs/reference/formats/html.html
# this replaces: quarto:::get_meta_for_html()
# See html format parameters: https://quarto.org/docs/reference/formats/html.html
quarto_html_meta <- function(){
list(
template = template_file('template.html'),
theme = 'none',
minimal = TRUE,
toc = TRUE,
'toc-depth' = 2
'toc-depth' = 2,
'embed-resources' = TRUE,
)
}

Expand Down

0 comments on commit c171da3

Please sign in to comment.