The fastest way to start with development is to use pixi. If you don't have pixi
installed, you can install it by following the instructions at
pixi documentation. On macOS, you can use
brew install pixi.
To use pixi, run the following commands:
$ pixi task list # List all available tasks
$ pixi run build # Build the documentation
$ pixi run serve # Build and serve the docs locally (with auto-reload)
$ pixi run build-check # Build and validate all links
$ pixi run validate # Validate links in the built sitepixi handles everything for you, including setting up a temporary virtual environment with all required dependencies (zensical, plugins, lychee, etc.).
You should prepare pre-commit, which will help you by checking that commits pass required checks:
pip install pre-commit # or brew install pre-commit on macOS
pre-commit install # Will install a pre-commit hook into the git repoYou can also/alternatively run pre-commit run (changes only) or
pre-commit run --all-files to check even without installing the hook.
This project uses Zensical for documentation. The documentation is automatically built and published via GitHub Pages when changes are pushed to the main branch.
You can build the docs locally using pixi:
pixi run buildYou can see a preview with live reload (great for iterating on documentation):
pixi run serveThen open http://127.0.0.1:8000 in your browser.
To validate all links in the documentation:
pixi run build-checkThis will build the documentation without directory URLs and run lychee to
validate all links (note: requires a lychee.toml configuration file).
This project uses pre-commit for all style checking and linting. Install pre-commit and run:
pre-commit run -ato check all files.