To tweak the index page, you need a section called reference
which provides a list of sections containing, a title, list of
contents, and optional description.
For example, the following code breaks up the functions in pkgdown
into two groups:
reference:
- title: Render components
desc: Build each component of the site.
contents:
- starts_with("build_")
- init_site
- title: Templates
contents:
- render_page
Note that contents can contain either a list of function names,
or if the functions in a section share a common prefix or suffix, you
can use starts_with("prefix") and ends_with("suffix") to
select them all. For more complex naming schemes you can use an aribrary
regular expression with matches("regexp"). You can also use a leading
- to exclude matches from a section. By default, these functions that
match multiple topics will exclude topics with keyword "internal". To
include, use (e.g.) starts_with("build_", internal = TRUE).
Alternatively, you can selected topics that contain specified concepts with
has_concept("blah"). Concepts are not currently well-supported by
roxygen2, but may be useful if you write Rd files by hand.
pkgdown will check that all non-internal topics are included on
this page, and will generate a warning if you have missed any.