serve_site: Serve the site

View source: R/serve.R

serve_siteR Documentation

Serve the site

Description

These are wrappers around blogdown::serve_site() and blogdown::stop_server(). The main purpose is to ensure that the blogdown re-knitting process doesn't run when files are saved. stop_server() is a simple re-export.

Usage

serve_site(
  build_rmd = TRUE,
  rmd_folder = "R/Rmd",
  rebuild = FALSE,
  drafts = TRUE,
  future = TRUE
)

stop_server()

Arguments

build_rmd

whether to build Rmd files before serving

rmd_folder

the folder containing Rmd files

rebuild

whether to trigger a rebuild of all Rmd files

drafts

whether to include drafts

future

whether to include pages with a date in the future

Functions

  • stop_server: Stop serving a Hugo site


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