This github repository serves as a template for a short-form workshop, lesson, or course to be shared in the form of a pkgdown website with slides rendered by xaringan.
Click the green “Use this template” button from https://github.com/uf-repro/lesson-template.
Modify README.Rmd
with basic metadata for the package and lesson.
README.md
file and also update the package’s DESCRIPTION
file.prerequisites
, priorCourse
, and learningOutcomes
are read from the DESCRIPTION
file for intro content in the slides.slides/slides.Rmd
.Update the list of resources at resources.md
Push changes for the new repo.
Modify the About
box on the repo page to include the GitHub Pages URL as the Website.
== OPTIONAL ==
Configure Zenodo for the new repo.
Release a version on GitHub.
Update the DOI badge.
This repository is structured as an R package. For details on creating R packages, see the R Packages book.
The website is built using pkgdown
, which depends on the repository being a functional R package. Basic configuration of the menu is done via the _pkgdown.yml
file.
Deployment of the website is handled on GitHub and automated via GitHub Actions. The script /.github/workflows/pkgdown.yaml
is a modified version from the r-lib/actions repository: * RMDconverter processes the slide content into a single continuous markdown file to show as a notes page. * A separate call is made to render the slides, so that the resulting HTML slides do NOT have the pkgdown formatting.
The static content for the site is then stored on the gh-pages
branch, and viewable at the standard web location: {github account}.github.io/{repo name}.