Skip to contents

greta.pkgdown is the shared pkgdown template for the greta family of packages. It builds on Bootstrap 5 and gives every greta package a consistent look and feel: the greta purple theme, Roboto typography, tinted code blocks, and the greta wordmark in the navbar.

This is an internal template for the greta family of packages. You are welcome to read it for inspiration, but please don’t depend on it for your own package.

How to use

In a greta package, add the template to _pkgdown.yml:

template:
  package: greta.pkgdown
  bootstrap: 5

and add greta.pkgdown to the website dependencies in DESCRIPTION so it is installed when the site is built:

Config/Needs/website: greta-dev/greta.pkgdown

That’s it. The shared theme, navbar wordmark, and SCSS are applied automatically. A package keeps full control of its own navbar left: structure, reference index, articles, and home page.

What’s shared

  • Theme — bslib variables for the greta purple (#A379CC), tinted code background, and Roboto / Roboto Mono fonts.
  • Navbar wordmark — a templates/navbar.html override that swaps the package-name text for the greta wordmark image. A package can override the image by shipping its own name_icon_on_white.png.
  • SCSS — navbar and code styling plus opt-in scaffolding for a full-width greta-style home page.

What stays per-package

Favicons, the reference index, articles, and home-page content are specific to each package and are not provided by this template.