These are the lecture notes for CSCI 201, discrete math and functional programming, as taught by Ezra Morrison at Western Washington University.
Style and conventions live in CLAUDE.md and .github/copilot-instructions.md;
this file covers the workflow.
Never commit an answer to anything that is graded:
assessments, solutions and labs belong in the private Morrison-Lab/mcsg repository.
-
Clone with the submodules, or fetch them after cloning:
git submodule update --init --recursive
-
Create a branch for your work:
git checkout -b <topic>
-
Edit or add pages. A chapter is
chapters/<topic>.qmd, with its units inchapters/_subfiles/<topic>/, one div per file. Add each new chapter to both the navbar and the sidebar in_quarto-website.yml, in course order. -
Preview your changes locally:
quarto preview
or render just the page you changed:
quarto render chapters/<topic>.qmd --to html
-
Commit, push, and open a pull request. Each pull request gets a preview build, and the checks below.
- Spelling: add legitimate words to
inst/WORDLISTrather than disabling the check. - Links: an automated link checker runs on every pull request and weekly.
Prefer HTTPS and permanent links, and fix a broken link rather than excluding it in
lychee.toml. If you have checked every link in your pull request by hand, thelinks checked by handlabel skips the check for that pull request. - Bibliography DOIs and non-standard characters: fix the flagged source rather than relaxing the check.
Put figures in images/ and reference them from a figure div:
::: {#fig-label}

Caption text.
:::Add BibTeX entries to references.bib and cite them in the text as @key.
Cite only sources you have read; never invent a citation.
Open an issue in the repository.