Set the necessary common global variables for use in the varnish template.
Source:R/utils-varnish.R
set_globals.Rd
This will enforce four global lists:
Details
.resources
, which is equivalent to the output ofget_source_list()
this_metadata
, which contains the metadata common for the lessonlearner_globals
the navigation items for the learnersinstructor_globals
the namvigation items for the instructors
The things that are added:
sidebar
This is generated fromcreate_sidebar()
and is the same in the learner and instructor globals with the exception of the first element.more
This is the "More" dorpdown menu, which is created viacreate_resources_dropdown()
.resources
The same as "More", but positioned on the mobile sidebar.{sandpaper,varnish,pegboard}_version
package versions of each package.