Quarto (reveal.js) slides on microbiome data science and multi-omics with R/Bioconductor. Published by GitHub Actions to GitHub Pages: a home page plus one self-contained HTML file per deck.
slides/<name>.qmd one file per deck
slides/figures/ figures shared by all decks (link as figures/<file>)
archive/<name>.html built HTML of a frozen deck (not rebuilt)
references.bib shared bibliography (applies to every deck)
theme/tokens.css brand colours, light and dark (edit to restyle everything)
theme/mia.scss slide layout and reusable components (.card, .pill, .flow, .cta, ...)
theme/theme-toggle.html light/dark toggle (button, or press "d")
_quarto.yml options shared by all decks (theme, logo, footer, transitions, ...)
R/live.R live data helpers that fall back to cache/
cache/ last good copy of each live screenshot and download
slides.yml home page: sections, order, descriptions
index.qmd home page (cards come from the decks' front matter and slides.yml)
site/ home page helpers and CSS
scripts/check-slides.R lint: no per-deck theme or CSS; images must exist
DESCRIPTION every R dependency (CRAN and Bioconductor)
- Create
slides/<name>.qmd. For talks and courses name itYYYY-MM-DD-name(orYYYY-MM-name); the home page takes the date from the name. Front matter needs onlytitle;subtitle,author,dateandexecute:are optional. Do not settheme,css,logoorfooter: they come from_quarto.yml, and the check fails otherwise. Put speaker notes in a::: notesblock at the end of each slide. The title slide cannot have one (Quarto adds a blank slide); usedata-notes: "..."undertitle-slide-attributes:in the front matter. Link to other decks with relative links, e.g.[Data containers](data-containers.html). - Put images in
slides/figures/and cite fromreferences.bib. - Add any new R package to
DESCRIPTION. - Optionally list the deck in a section of
slides.yml; otherwise it appears under "More". - Preview with
quarto preview slides/<name>.qmd. Pressdto switch between light and dark.
Brand colours (theme/tokens.css): Bioconductor blue #1a81c2, Bioconductor green #87b13f, mia brown #704214.
Fills and accents use them unchanged in light and dark mode; only text uses lighter variants (--*-ink) on dark backgrounds.
Light or dark follows the OS; press d or use the button (top left) to switch.
In dark mode figures and screenshots get a white card; add {.no-card} to an image to skip it.
Decks must not call webshot(), BiocPkgTools::biocDownloadStats() or similar directly (the check fails).
Add source("../R/live.R") in a hidden setup chunk and use live_screenshot(url, name = ...),
live_bioc_download_stats(), live_bioc_pkg_list(), live_bioc_pkg_rank(pkg), live_read_delim(url), or
live_data(name, expr) for anything else. Each tries the live source (screenshots wait up to 90 s, twice).
On success the result is saved in cache/; on failure the last copy in cache/ is used, with a warning.
A data call fails only if it has never been cached; a screenshot then shows a placeholder.
To refresh the fallbacks, render locally and commit cache/. LIVE_OFFLINE=true uses the cache only.
On every push, GitHub Actions installs the dependencies once, builds each deck that is not frozen in its own job,
and publishes the decks and the home page to GitHub Pages (main only; pull requests build but do not deploy).
The jobs run in the bioconductor/bioconductor:devel container.
Locally: quarto render; output is in _site/.
A deck is frozen when archive/<name>.html exists. CI does not build it and publishes that file as it is,
so an old talk does not change when packages do. Keep the .qmd in slides/: the home page reads the title and date from it.
- Freeze:
quarto render slides/<name>.qmd, copy_site/slides/<name>.htmltoarchive/, commit. Use the HTML from the talk itself if you have it. - Update: replace
archive/<name>.html. Editing the.qmddoes not change the published deck. - Unfreeze: delete
archive/<name>.html.
The files are large and every version stays in git history, so replace them sparingly.