Designed to be run as part of automated workflows for deploying
to GitHub pages. It cleans out the old site, builds the site into dest_dir
adds a .nojekyll
file to suppress rendering by Jekyll, and adds a CNAME
file if needed.
It is designed to be run in CI, so by default it:
Cleans out the old site.
Does not install the package.
Runs build_site()
in process.
build_site_github_pages(
pkg = ".",
...,
dest_dir = "docs",
clean = TRUE,
install = FALSE,
new_process = FALSE
)
Path to package.
Additional arguments passed to build_site()
.
Directory to build site in.
Clean all files from old site.
If TRUE
, will install the package in a temporary library
so it is available for vignettes.
If TRUE
, will run build_site()
in a separate process.
This enhances reproducibility by ensuring nothing that you have loaded
in the current process affects the build process.