Skip to contents

pkgdown::build_site() reads _pkgdown.yml without evaluating !expr tags, so the Bootstrap variables derived from _brand.yml cannot come from the file itself. Pass them as override, which pkgdown merges into the site config before handing template.bslib to bslib::bs_theme():

Usage

pkgdown_override(..., path = brand_file())

Arguments

...

Further _pkgdown.yml values, such as destination.

path

A _brand.yml, in the form described in brand_file().

Value

A list suitable for the override argument of pkgdown::build_site() and pkgdown::build_site_github_pages().

Details

pkgdown::build_site(override = brand::pkgdown_override())