Skip to main content

Minimal static site generator built with type annotations

Project description

Mackerel

PyPI CI License: MIT codecov

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

  1. Fork the repo & create a branch.
  2. Write tests for new features.
  3. Ensure make lint test passes.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mackerel-0.3.0.tar.gz (90.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mackerel-0.3.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

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

Hashes for mackerel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b70796cea8e809f797cf6e8e892859a10feb4a0a7e835764fa785140af7d8a48
MD5 1e210081028a016ed643176d7da0f186
BLAKE2b-256 b2fcedb4bcd70bd9c9b41f7933a9ecb5070abf9d92bb667b32b1ffd53d557ae1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mackerel-0.3.0.tar.gz:

Publisher: publish.yml on pkolios/mackerel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mackerel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ef465a5d76c316a5a5a1dcb09c4c117f082acb76df6ee52fc217819eb6e469
MD5 266e126a50c0194b78a5d3092ed93998
BLAKE2b-256 35f0cfb31cd675b0799f6859421328542d157041bc0ec904a8bc1903f79051a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mackerel-0.3.0-py3-none-any.whl:

Publisher: publish.yml on pkolios/mackerel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page