Skip to main content

Zero-dependency Python static-site generator. Base layout + partials + Markdown content + YAML data + shortcodes. One file, stdlib only.

Project description

lintc

Zero-dependency Python static-site generator. Base layout + partials

  • Markdown content + YAML data + shortcodes. One file, stdlib only.

PyPI CI License: MIT

Install

uv tool install lintc      # recommended — isolated, no env needed
pipx install lintc         # equivalent if you prefer pipx
pip install --user lintc   # also fine

Requires Python 3.9 or newer. No other dependencies.

Quickstart

Scaffold a site:

src/
├── content/
│   ├── pages/home.yaml       # structured pages
│   ├── blog/*.md             # Markdown posts with YAML front matter
│   └── products/*.yaml
├── layouts/
│   ├── _base.html            # the master layout
│   ├── home.html             # page layouts
│   └── partials/             # shared chrome (head, header, footer, components)
├── data/                     # site-wide data (site.yaml, nav.yaml, etc.) + optional lintc.yaml
└── static/                   # copied verbatim into dist/

Build it:

lintc build              # emits dist/
lintc serve              # dev server with live reload at http://127.0.0.1:8000/
lintc check              # post-emit validations + GitHub-repo parity

CLI

lintc build [--root DIR] [--include-drafts]
lintc serve [--root DIR] [--host HOST] [--port PORT] [--no-reload] [--no-drafts]
lintc check [--root DIR]
lintc --version
lintc --help

build hides drafts by default — use --include-drafts to opt them in. serve shows drafts by default — use --no-drafts to hide them.

lintc check's validators are configurable via src/data/lintc.yaml — see docs/index.md for the schema.

Documentation

Full docs: docs/index.md. Changelog: docs/changelog.md.

License

MIT — see LICENSE.

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

lintc-0.3.1.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

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

lintc-0.3.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file lintc-0.3.1.tar.gz.

File metadata

  • Download URL: lintc-0.3.1.tar.gz
  • Upload date:
  • Size: 44.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lintc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f0fca95b9bda34a66c42f0bc6ff3f0e4c016464f63c8c4ae859a7a1c380fdd20
MD5 dd390fbf6d5144a367c0398e964e20f3
BLAKE2b-256 3680f206fcfe2f2f545ac8a22a56e27362e6b17ae6eb0ca5dccffc53d9a0999c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintc-0.3.1.tar.gz:

Publisher: release.yml on lintuxt/lintc

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

File details

Details for the file lintc-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: lintc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lintc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4133c45dfaf4958fce4d16fabdd210aa325cc8ce8cf8cff91d89ba0440fdc67a
MD5 7539597fbef16b15a61f58c6884175b9
BLAKE2b-256 bdd6eec0ceef531f375958941509323ec46726717a6c835682484664e08b575a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintc-0.3.1-py3-none-any.whl:

Publisher: release.yml on lintuxt/lintc

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