Skip to content

Commit

Permalink
add script to build site
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhcullen committed Aug 5, 2024
1 parent 7915d7e commit 8ecc5c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .build-site.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env Rscript

message("---- Building workshop website and slides ----")
message("Entering 'site/'")
setwd("site")
source("00-make-slides.R")
message("\nRendering quarto website...")
quarto::quarto_render()

message("Rendering quarto website...done!")
if (!nzchar(Sys.getenv("CI"))) {
message('Use `quarto::quarto_preview("site")` to preview the site')
}

0 comments on commit 8ecc5c4

Please sign in to comment.