Skip to content
patrick-5546Public

About

My notes on various programming-related topics

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

notes

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.

Setup

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 sync

macOS'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.

Commands

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.

Writing Notes

  • Each page is a Markdown file in docs/, written in Python Markdown with the extensions that zensical.toml enables. The authoring guide describes the syntax.
  • Add a new page to nav in zensical.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 serve shows it, and the published site leaves it out.

CI

  • The CI workflow runs make lint and make build on every push and pull request.
  • The Links workflow runs make links weekly, and on pull requests that change it or lychee.toml.
  • The Deploy workflow publishes the site on every push to main.

Updating Dependencies

Dependabot proposes weekly updates for the Python packages and the workflows' actions. To update the Python packages by hand, run uv lock --upgrade.

Conventions

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".

About

My notes on various programming-related topics

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages