Skip to contents

Varnish uses a sidebar for navigation across and within an episode. Each episode's sidebar is different because there needs to be a clear indicator which episode is the current one within the sidebar.

Usage

create_sidebar(
  chapters,
  name = "",
  html = "<a href='https://carpentries.org'/>"
)

Arguments

chapters

a character vector of paths to markdown chapters

name

the name of the current chapter

html

the html of the current chapter. defaults to a link that will produce a sidebar with no links to headings.

Details

This function creates that sidebar.