build_hugo_rmd: Bulk Hugo-ify Rmd files

View source: R/build.R

build_hugo_rmdR Documentation

Bulk Hugo-ify Rmd files

Description

build_hugo_rmd() converts all Rmd files within a folder to Hugo-ified HTML, it will place the Hugo-ified HTML files into the content sections designated in the Rmd YAML front matter. Use render_rmd() if you want to override this. By default it expects Rmd files in the R/Rmd folder. The default behaviour is to only build files that are changed, which is tracked using the rmd.log file that is created/stored in the rmd_folder, you can force the building of all pages by setting rebuild = TRUE. If working in RStudio the process will save all open source editors windows before running.

Usage

build_hugo_rmd(rmd_folder = "R/Rmd", rebuild = FALSE, save = TRUE)

govukhugo_knit(input, ...)

Arguments

rmd_folder

path to the folder containing Rmd files

rebuild

whether to rebuild all Rmd files

save

whether to save open RStudio source files before build

input

recieved Rmd file

...

knitr fluff

Functions

  • govukhugo_knit: Don't directly knit govukhugo documents


co-analysis/govuk-hugo-r documentation built on June 23, 2022, 5:44 a.m.