How to Add a Workflow to the Website
How to add a workflow to the website
Use this checklist when you migrate a workflow into the Quarto site.
Copy-paste checklist
- Pick one workflow folder and read its
README.md, numbered notebooks, and any.ai_context.mdfile before editing the site. - Confirm the workflow has committed source materials you can display directly: prose, code blocks, and any figures already stored in the repo.
- Do not re-execute or re-knit notebooks. The site is display-only and relies on committed text and figures.
- Add or update the workflow entry in
site/catalog.yml, including its category, label,repo_path, and whether it is a GitHub link or an internal Quarto page. - Create or update the Quarto page if the workflow is being migrated into the site, and add the
workflow.idplusworkflow.repo_pathfront matter metadata. - Reuse existing files instead of copying analysis content into a second location. Summarize the workflow briefly, then point readers to the source notebooks when needed.
- Reference only committed images and assets from the repository. If a figure is missing, note it in the PR instead of regenerating it.
- Run
python3 scripts/build_site_catalog.py, thenquarto render, from the repo root. - Verify the page in the rendered site: links work, images load, copy-code buttons appear, and the GitHub source link points to the correct workflow folder.
Before opening a PR
- Run
python3 scripts/build_site_catalog.pyfrom the repo root so_quarto.ymland the generated catalog files stay aligned withsite/catalog.yml. - Run
Rscript validate_repo.Rand fix any site-related errors before pushing. - Run
quarto renderfrom the repo root and confirm the build completes without executing notebooks. - Verify the rendered page manually: navigation works, local images load, and the
View source on GitHublink points to the correct folder. - Confirm the site remains display-only: no notebook execution, no duplicated analysis content, and no regenerated figures.
Fixed page template
Every workflow page should stay within this structure:
# <Workflow name>
---
title: "<Workflow name>"
workflow:
id: "<catalog id>"
repo_path: "<repo-relative workflow folder>"
---
## What it does
2โ3 sentences.
## When to use it
Inputs, outputs, and what question it answers.
## Prerequisites
Required packages and example data.
## Steps
Rendered code + figures from the existing .rmd (usage + short rationale per step).
### <Step heading>
Individual step details.
## Gotchas / notes
Common pitfalls, parameter choices worth knowing.
---
[ ๐ View source on GitHub ]Page-building notes
- Keep the site tone at the usage-and-rationale level. This is not a from-scratch teaching course.
- Preserve analysis logic exactly as it exists in the repo. If source content is broken or incomplete, record that in the PR instead of changing the science.
- Prefer small, reviewable PRs grouped by workflow family or category.
README.mdstays manual for now. Updatingsite/catalog.ymldoes not automatically update the root repository README.