Skip to content

Repository files navigation

Slides

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)

Adding or editing a deck

  1. Create slides/<name>.qmd. For talks and courses name it YYYY-MM-DD-name (or YYYY-MM-name); the home page takes the date from the name. Front matter needs only title; subtitle, author, date and execute: are optional. Do not set theme, css, logo or footer: they come from _quarto.yml, and the check fails otherwise. Put speaker notes in a ::: notes block at the end of each slide. The title slide cannot have one (Quarto adds a blank slide); use data-notes: "..." under title-slide-attributes: in the front matter. Link to other decks with relative links, e.g. [Data containers](data-containers.html).
  2. Put images in slides/figures/ and cite from references.bib.
  3. Add any new R package to DESCRIPTION.
  4. Optionally list the deck in a section of slides.yml; otherwise it appears under "More".
  5. Preview with quarto preview slides/<name>.qmd. Press d to switch between light and dark.

Colours

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.

Live data and screenshots

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.

Build

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/.

Frozen decks

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>.html to archive/, commit. Use the HTML from the talk itself if you have it.
  • Update: replace archive/<name>.html. Editing the .qmd does 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.

Releases

Packages

Contributors

Languages