What is this handbook for?

The purpose of this handbook is to serve as a resource for creating and maintaining Quarto-based teaching materials.

Source documents

The source documents used for these sites are Quarto Markdown (.qmd) files. This versatile format can be rendered into websites, documents (.pdf, .docx) and notebooks (.ipynb).

flowchart LR
    A["Author and version control<br/>.qmd<br/>plain text + Markdown + code"] --> B["Quarto render"]

    B --> C["Course website<br/>.html<br/>navigation, figures,<br/>optional Pyodide interactivity"]
    B --> D["Notebook<br/>.ipynb<br/>student experimentation"]
    B --> E["Documents<br/>.pdf / .docx<br/>handouts and printable material"]

    classDef source fill:#e8f1fb,stroke:#1769aa,stroke-width:2px;
    classDef engine fill:#f5f5f5,stroke:#555,stroke-width:2px;
    classDef output fill:#eef7ee,stroke:#2e7d32,stroke-width:1px;

    class A source;
    class B engine;
    class C,D,E output;

These documents are plain text, which makes version control and editing simpler than working with the downstream formats directly. This is especially useful when several output formats are needed, or when the same material has student and instructor versions.

In normal authoring work, edit the source document rather than a rendered output. A notebook or PDF generated from a .qmd file may be useful for learners, but changes made directly to it will not reliably carry back into the maintained source.

Software environment

The rendered material depends not only on its source documents, but also on project configuration and on a reproducible software environment containing the tools used to build it.

The course repositories use pixi to install and run their declared toolchain in an isolated environment.

The pixi.toml manifest declares dependencies and reusable tasks, while pixi.lock records the resolved package versions. Keeping both files in version control allows collaborators to recreate the same declared environment.

flowchart LR
    A["Course content<br/>.qmd<br/>text and code"]
    H["Project configuration<br/>_quarto.yml<br/>profiles and extensions"]

    subgraph E["Pixi-managed toolchain"]
        direction TB
        B["pixi.toml<br/>declared software and tasks"]
        C["pixi.lock<br/>exact resolved versions"]
        D["Installed environment<br/>Quarto + Python + R<br/>and dependencies"]
        B --> C
        C --> D
    end

    A --> F["Quarto render"]
    H --> F
    E --> F
    F --> G["Published teaching material<br/>site, notebook or document"]

    classDef source fill:#e8f1fb,stroke:#1769aa,stroke-width:2px;
    classDef environment fill:#fff7ea,stroke:#9a5b00,stroke-width:1.5px;
    classDef process fill:#f5f5f5,stroke:#555,stroke-width:2px;
    classDef output fill:#eef7ee,stroke:#2e7d32,stroke-width:1px;

    class A,H source;
    class B,C,D environment;
    class F process;
    class G output;

    style E fill:transparent,stroke:#9a5b00,stroke-width:2px;

One source, several audiences

Several course repositories create more than one output from the same source. A learner-facing version can omit answers or provide starter code, while an answer-bearing version includes instructor material. Other projects publish only one site, or publish notebooks and printable reports alongside HTML.

For new projects, this handbook recommends student and instructor profiles plus the quarto-teaching-tools extensions, controlled through teaching.show-solutions. Existing projects may use different profile names or local filters. In either case, edit shared source documents, preview the relevant variant, and use the configured task to render final outputs.

What contributors usually change

Most updates involve .qmd lesson or exercise files and their figures, datasets, or downloadable resources. Configuration files, custom filters, extensions, and deployment workflows are part of the project infrastructure; change them only when the requested update genuinely alters how the material is built or published.