Minimal static site generator built with type annotations
Project description
Mackerel
A minimal static site generator written in typed Python. This README is for developers contributing to Mackerel. For end-user documentation, see docs.
Development Setup
Clone the repo and set up dependencies:
git clone https://github.com/pkolios/mackerel.git
cd mackerel
uv sync
Run tests:
make test
Lint & type check:
make lint
Build docs:
make docs
Codebase Structure
src/mackerel/
├── build.py # Build logic
├── cli.py # CLI (init, build, develop)
├── config.py # Configuration loading
├── parsers.py # Front matter parsing
├── renderers.py # Markdown + Jinja2 rendering
├── site/ # Starter site (templates + content)
└── types.py # Typed core types & protocols
- Functional Core, Imperative Shell: Business logic is pure and typed, orchestration happens in CLI.
- Minimal dependencies: Keeping the cli installation time as fast as possible.
Contributing
- Fork the repo & create a branch.
- Write tests for new features.
- Ensure
make lint testpasses. - Submit a PR.
We follow strict typing (mypy, pyright) and ruff for linting.
Docs are in docs/.
Changelog
See CHANGELOG.md.
License
MIT © Paris Kolios
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mackerel-0.3.0.tar.gz.
File metadata
- Download URL: mackerel-0.3.0.tar.gz
- Upload date:
- Size: 90.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b70796cea8e809f797cf6e8e892859a10feb4a0a7e835764fa785140af7d8a48
|
|
| MD5 |
1e210081028a016ed643176d7da0f186
|
|
| BLAKE2b-256 |
b2fcedb4bcd70bd9c9b41f7933a9ecb5070abf9d92bb667b32b1ffd53d557ae1
|
Provenance
The following attestation bundles were made for mackerel-0.3.0.tar.gz:
Publisher:
publish.yml on pkolios/mackerel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mackerel-0.3.0.tar.gz -
Subject digest:
b70796cea8e809f797cf6e8e892859a10feb4a0a7e835764fa785140af7d8a48 - Sigstore transparency entry: 575809200
- Sigstore integration time:
-
Permalink:
pkolios/mackerel@6c63e4c45f42cd970a668d7d0ec62945e32555d3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/pkolios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c63e4c45f42cd970a668d7d0ec62945e32555d3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mackerel-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mackerel-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ef465a5d76c316a5a5a1dcb09c4c117f082acb76df6ee52fc217819eb6e469
|
|
| MD5 |
266e126a50c0194b78a5d3092ed93998
|
|
| BLAKE2b-256 |
35f0cfb31cd675b0799f6859421328542d157041bc0ec904a8bc1903f79051a2
|
Provenance
The following attestation bundles were made for mackerel-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on pkolios/mackerel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mackerel-0.3.0-py3-none-any.whl -
Subject digest:
e7ef465a5d76c316a5a5a1dcb09c4c117f082acb76df6ee52fc217819eb6e469 - Sigstore transparency entry: 575809202
- Sigstore integration time:
-
Permalink:
pkolios/mackerel@6c63e4c45f42cd970a668d7d0ec62945e32555d3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/pkolios
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c63e4c45f42cd970a668d7d0ec62945e32555d3 -
Trigger Event:
release
-
Statement type: