My notes on various programming-related topics, published at https://patrick-5546.github.io/notes/. The site is built with Zensical, and its Zensical page explains how it's set up and deployed.
Install uv, GNU make 4 or newer, and Git. Then clone the repository and install its dependencies:
git clone https://github.com/patrick-5546/notes.git
cd notes
uv syncmacOS's own make, 3.81, is too old: install a newer one with brew install make, and run it as gmake.
On Windows, use WSL.
| Command | Description |
|---|---|
make serve |
Preview the site at http://localhost:8000, with drafts, rebuilding it as pages change |
make build |
Build the site into site/; a broken link or anchor fails it |
make lint |
Check the Markdown with rumdl, the spelling with typos, and the GitHub workflows with actionlint and zizmor |
make format |
Fix what rumdl can in the Markdown |
make links |
Check the links to other sites with lychee |
make clean |
Remove the built site and the caches |
GH_TOKEN=$(gh auth token) make lint also runs zizmor's online audits.
- Each page is a Markdown file in
docs/, written in Python Markdown with the extensions thatzensical.tomlenables. The authoring guide describes the syntax. - Add a new page to
navinzensical.toml; the build doesn't warn about a page missing from it. - Indent the content nested in lists, admonitions, and content tabs by four spaces.
- Define an abbreviation in
includes/abbreviations.md, which every page gets. - Name a page that isn't ready
<name>.draft.md:make serveshows it, and the published site leaves it out.
- The CI workflow runs
make lintandmake buildon every push and pull request. - The Links workflow runs
make linksweekly, and on pull requests that change it orlychee.toml. - The Deploy workflow publishes the site on every push to main.
Dependabot proposes weekly updates for the Python packages and the workflows' actions.
To update the Python packages by hand, run uv lock --upgrade.
Pull requests are squash-merged, and labelled new, update, or infrastructure for the release notes.
Commit subjects are imperative, without a final period, such as "Add a page about Docker".