Setup¶
Requirements¶
| Tool | Purpose |
|---|---|
| uv | Environment and dependency manager |
| gh | GitHub CLI, used for releases |
| git | Version control |
1. Install the tooling¶
Follow the uv installation instructions.
Follow the gh installation instructions.
2. Check out the project¶
Then switch into the project directory:
3. Create the environment¶
Make sure the environment is set up properly and all dependencies are installed:
Optionally activate the virtual environment managed by uv:
Tip
Activating is not strictly necessary, prefixing commands with uv run
works just as well, e.g. uv run invoke test.unit.
4. Bootstrap the workspace¶
To bootstrap the remaining parts of the workspace setup (git hooks, checks that required tools are available, ...), run:
Note
Follow potential instructions printed by the task.
Common tasks¶
All automation is exposed through invoke tasks.
Run uv run invoke --list to see everything that is available.
Documentation¶
The documentation is built with Zensical and lives in
the docs/ directory:
| Path | Content |
|---|---|
zensical.toml |
Site configuration (nav, theme, plugins) |
docs/docs/ |
The Markdown sources of the documentation |
docs/overrides/ |
Theme template overrides |
docs/overrides/.icons/ |
Custom icons, e.g. the project logo |
docs/docs/stylesheets/ |
Additional stylesheets |
docs/docs/assets/images/ |
Images and the favicon |
docs/scripts/ |
Scripts generating documentation content |
Start a live preview with:
Generated content
The configurations.md page is generated from the source code by
docs/scripts/configurations.py. It is regenerated automatically by the
docs.build and docs.serve tasks, and is therefore not checked in.