R/build-site.R

Defines functions build_site

Documented in build_site

#' Run `pkgdown::build_site()`
#'
#' This is a thin wrapper around [pkgdown::build_site()], used for generating
#' static HTML documentation. Learn more at <https://pkgdown.r-lib.org>.
#'
#' @param path Path to the package to build the static HTML.
#' @param ...  Additional arguments passed to [pkgdown::build_site()].
#' @export
build_site <- function(path = ".", ...) {
  check_installed("pkgdown")

  save_all()
  pkgdown::build_site(pkg = path, ...)
}

Try the devtools package in your browser

Any scripts or data that you put into this service are public.

devtools documentation built on April 30, 2026, 9:08 a.m.