Wrapper for pkgdown::build_site that we use to build the websites
for https://docs.ropensci.org
. Sets a theme and logo, checks if
mathjax is required, and injects a logo into the readme if needed.
Usage
build_ropensci_docs(
path = ".",
destination = NULL,
install = FALSE,
preview = interactive(),
...
)
Arguments
- path
path to package source directory
- destination
path where to save the docs website
- install
passed to pkgdown::build_site. Default is to not reinstall the package.
- preview
preview the website (servr will be used)
- ...
passed to pkgdown::build_site