Source for the Real Good Research documentation site, built with Quarto and published on GitHub Pages.
index.qmd— site home pageteaching/— teaching material, including the Bayesian intro chapter setresearch/— research notes and project pagesassets/— shared images and site assets_quarto.yml— global site configurationrequirements.R— R package dependencies used by the siterequirements.sh— optional Linux system package helper
You need:
- Quarto
- R 4.2 or newer
- the R packages listed in
DESCRIPTION
If you are on Linux, requirements.sh installs a few common system libraries for plotting and document rendering.
Render the site locally with:
quarto renderQuarto writes the rendered site to docs/.
GitHub Pages serves the gh-pages branch from the repository root /.
On pushes to main, .github/workflows/publish.yml:
- checks out the repo,
- installs Quarto and the required R packages,
- runs
quarto render, - publishes
docs/togh-pages.
That keeps production HTML separate from source while still giving CI a safety net if you forget to render locally.
The workflow does not install CmdStan. Computational chapters rely on Quarto freeze mode (execute: freeze: true in _quarto.yml) so CI can reuse committed execution results.
Use Quarto freeze mode as the default for computational chapters:
- no code changes: the existing freeze cache is usually enough;
- code changes: run
quarto renderlocally first so the cache stays in sync; - new computational content: render locally before pushing.
For a new page or chapter:
- add a new
.qmdfile in the appropriate folder; - add shared assets to
assets/or chapter-specificresources/; - update
_quarto.ymlif navigation needs to change; - render locally when you want to refresh outputs;
- push to
mainand let GitHub Actions publish the site.