build_hugo_rmd | R Documentation |
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.
build_hugo_rmd(rmd_folder = "R/Rmd", rebuild = FALSE, save = TRUE) govukhugo_knit(input, ...)
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 |
govukhugo_knit
: Don't directly knit govukhugo documents
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.