Build a home page for a lesson
Arguments
- pkg
a list generated from
pkgdown::as_pkgdown()
from thesite/
folder of a lesson.- quiet
a boolean passed to
build_html()
. ifTRUE
, this will have pkgdown report what files are being built- next_page
the next page file name. This will allow the navigation element to be set up correctly on the navigation bar
Details
The index page of the lesson is a combination of two pages:
index.md (or README if the index does not exist)
learners/setup.md
This function uses render_html()
to convert the page into HTML, which gets
passed on to the "syllabus" or "overview" templates in {varnish}
(via the
build_html()
function as the {{{ readme }}}
and {{{ setup }}}
keys.