Skip to content

Modernise greta.pkgdown to a Bootstrap 5 template package - #1

Merged
njtierney merged 1 commit into
mainfrom
modernise-bs5-template
Jul 7, 2026
Merged

Modernise greta.pkgdown to a Bootstrap 5 template package#1
njtierney merged 1 commit into
mainfrom
modernise-bs5-template

Conversation

@njtierney

Copy link
Copy Markdown
Collaborator

Restructures greta.pkgdown into a standard Bootstrap 5 pkgdown template package (tidytemplate model), so greta packages can inherit a shared theme via template: package: greta.pkgdown.

  • Adds inst/pkgdown/BS5/: shared _pkgdown.yml (bslib purple #A379CC, Roboto, opengraph), extra.scss, templates/navbar.html wordmark override, and a default name_icon_on_white.png. The theme is lifted read-only from greta's live pkgdown/ config.
  • Removes the dead fork-era files (pkgdown.css and the seven content-*/layout-home/footer/navbar templates).
  • Fixes DESCRIPTION (Language: esen-GB, new Title/Description, URL/BugReports, version 0.1.0), self-hosts the site with template: package: greta.pkgdown, drops greta-stats.org/twitter links, refreshes the pkgdown workflow to the r-lib v2 gh-pages action, and documents usage in index.md/README.

Next: validate on an extension (e.g. greta.dynamics), then migrate greta itself.

Restructure greta.pkgdown into a standard Bootstrap 5 pkgdown template
package following the tidyverse/tidytemplate layout. The shared greta
theme now lives in inst/pkgdown/BS5/:

- _pkgdown.yml: shared template block (bslib purple #A379CC, tinted
  code background, Roboto/Roboto Mono) plus opengraph and a shared forum
  navbar component.
- extra.scss: shared navbar and code chrome, plus opt-in home-page
  scaffolding.
- templates/navbar.html: wordmark-in-navbar override.
- assets/name_icon_on_white.png: default navbar wordmark.

Remove the dead fork-era templates (content-*, layout-home, footer,
navbar) and pkgdown.css. Fix DESCRIPTION (Language es -> en-GB, new
Title/Description, URL/BugReports, version 0.1.0). Self-host the site
with template: package: greta.pkgdown and drop greta-stats.org/twitter
references. Refresh the pkgdown workflow to the r-lib v2 action
deploying to gh-pages, and document how greta packages consume the
template in index.md/README.
@njtierney
njtierney merged commit 1bdd4f1 into main Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant