Start a course from the template
Use the course repository template when starting a new Quarto course website. It provides a reproducible Pixi environment, student and instructor versions, example material, and a GitHub Pages publication workflow.
This page follows the complete setup from creating the repository to opening the published website. For the reasoning behind the structure, see Repository layout.
Before you start
You need:
- a GitHub account;
- permission to create repositories in
au-mbg, or another suitable owner; - Git configured; and
- Pixi installed.
The au-mbg organization is the recommended owner for MBG course material. If it is not available in GitHub’s owner selector, ask an organization owner for access or create the repository under another agreed owner.
Create the GitHub repository
Open au-mbg/template, select Use this template, and then select Create a new repository.
On the creation form:
- Keep
au-mbg/templateselected under Start with a template. - Select
au-mbgas the owner when the course belongs to the organization. - Enter a short repository name, for example
example-course. - Add a brief description that identifies the course.
- Choose Public for ordinary course material intended for publication.
- Leave Include all branches disabled; the template uses its default branch.
- Select Create repository.
GitHub creates an independent repository containing the template files and history-free starting content. Later template changes are not applied to the new course automatically.
Clone and customize the course
On the new repository page, select Code, copy its HTTPS URL, and clone it:
git clone https://github.com/au-mbg/COURSE_REPOSITORY.git
cd COURSE_REPOSITORYUse the actual owner and repository name if they differ. The template README is the authoritative setup checklist. Search the repository for its distinctive placeholders and replace each one:
| Placeholder | Replace with |
|---|---|
COURSE_TITLE |
The title shown to readers |
COURSE_REPOSITORY |
The GitHub repository name |
COURSE_AUTHOR |
The maintainer’s name and email |
GITHUB_ORGANIZATION |
The GitHub owner, normally au-mbg |
Replace the example homepage, lesson, and image with course material. Adjust the sidebar in course-notes/_quarto.yml when adding or renaming pages. See Organizing website content for navigation patterns.
Preview both versions
From the repository root, preview the learner-facing website:
pixi run previewThen check the answer-bearing version:
pixi run preview instructorConfirm that shared material appears in both versions, student scaffolding is usable, and worked solutions appear only in the instructor version. See Student & Instructor versions for the authoring syntax and visibility rules.
Record the initial customization
Stop the preview, inspect the changes, and create the first course-specific commit:
git status
git diff
git add README.md pixi.toml course-notes course-utils
git commit -m "Customize course template"
git pushIf the optional course-utils package was removed rather than customized, do not include that path. For more detail, see the Git workflow.
Enable GitHub Pages
In the new repository on GitHub:
- Open Settings.
- Select Pages under Code, planning, and automation.
- Under Build and deployment, set Source to GitHub Actions.
The template’s workflow runs after a push to main. Open the repository’s Actions tab and select Build and publish website to follow its build and deployment jobs. The GitHub Pages & Actions page explains how to read the workflow status and investigate failures.
When deployment completes, GitHub shows the site URL on the Pages settings screen and in the workflow deployment summary. With the usual organization and repository names, the address is:
https://au-mbg.github.io/COURSE_REPOSITORY/
The student website is published at that root address. The instructor website is published below it at /instructor/.
The /instructor/ address is not access controlled. Anyone who knows or finds the URL can open it. Do not publish confidential assessments, exam answers, personal information, or other restricted content there.
Where to go next
- Repository layout explains the role of each area in the generated repository.
- Organizing website content covers pages, sidebars, and navigation.
- Previewing and Rendering cover the normal local workflow.
- Student & Instructor versions shows how to write exercises and solutions in shared source documents.


