Each page is composed of four templates: "head", "header", "content", and
"footer". Each of these templates is rendered using the
then assembled into an overall page using the "layout" template.
render_page(pkg = ".", name, data, path = "", depth = 0L) data_template(pkg = ".", depth = 0L)
Path to package to document.
Name of the template (e.g. "home", "vignette", "news")
Data for the template.
This is automatically supplemented with three lists:
See the full contents by running
Location to create file. If
Depth of path relative to base directory.
You can use either the templates provided by pkgdown, or provide your
own by supplying
templates_path key in your
Generally, you'll find it easiest to customise if you start with a copy
of the pkgdown templates and modify from there.