Build a Blogdown site using blogdown::build_site()
.
Arguments
- ...
Arguments passed on to
blogdown::build_site
local
Whether to build the website locally. This argument is passed to
hugo_build()
, andlocal = TRUE
is mainly for serving the site locally viaserve_site()
.run_hugo
Whether to run
hugo_build()
after R Markdown files are compiled.build_rmd
Whether to (re)build R Markdown files. By default, they are not built. See ‘Details’ for how
build_rmd = TRUE
works. Alternatively, it can take a vector of file paths, which means these files are to be (re)built. Or you can provide a function that takes a vector of paths of all R Markdown files under thecontent/
directory, and returns a vector of paths of files to be built, e.g.,build_rmd = blogdown::filter_timestamp
. A few aliases are currently provided for such functions:build_rmd = 'newfile'
is equivalent tobuild_rmd = blogdown::filter_newfile
,build_rmd = 'timestamp'
is equivalent tobuild_rmd = blogdown::filter_timestamp
, andbuild_rmd = 'md5sum'
is equivalent tobuild_rmd = blogdown::filter_md5sum
.
Examples
dsl_init()
#> ✔ Creating a clean tic stage configuration
#> ℹ See `?tic::dsl_get` for details
get_stage("script") %>%
add_step(step_build_blogdown("."))
dsl_get()
#> ── tic configuration summary ───────────────────────────────────────────────────
#> ── Stage: script ───────────────────────────────────────────────────────────────
#> ▶ step_build_blogdown(".")