From 8ecc5c465627522694a3673773373bbeb8406052 Mon Sep 17 00:00:00 2001 From: Brendan Cullen Date: Mon, 5 Aug 2024 14:32:57 -0700 Subject: [PATCH] add script to build site --- .build-site.R | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .build-site.R diff --git a/.build-site.R b/.build-site.R new file mode 100755 index 0000000..3e7a29a --- /dev/null +++ b/.build-site.R @@ -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') +} \ No newline at end of file