Development¶
Install the development environment¶
The application package lives in src/app, and its tests live in
tests/test_app.
Run quality checks¶
Run the test suite with coverage:
Check and format the code:
Run every configured pre-commit hook:
Build and run the container¶
Work on the documentation¶
Start the Zensical development server:
Build the static site locally:
Changes pushed to main or master are deployed to GitHub Pages by
.github/workflows/docs.yml. GitHub Pages must use GitHub Actions as its
source in the repository settings.
Adapt the template¶
Before starting a new project, update the package name, description, author,
repository URLs, and console script in pyproject.toml. Rename src/app and
adjust the test imports if the Python package name changes. Update
zensical.toml with the new documentation title, author, repository, and
canonical URL.