Skip to main content

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

Project description

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 + configurable plugins

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 the docs for the schema.

lintc also supports build-time plugins, declared under build.plugins in the same lintc.yaml. A plugin contributes a shortcode plus its own JS/CSS, which are emitted into dist/ (and the matching <link>/<script> tags injected) only on pages that actually use the shortcode. lintc bundles one: lintc-swiper, a zero-dependency inline image carousel authored with the {{< lintc-swiper >}} shortcode (add loop="true" to wrap from the last slide back to the first).

Why it exists

The reason lintc exists is that the static site for lintuxt.ai needed a compiler, and the existing Python options either required a dependency graph I didn't want (Pelican, MkDocs) or a runtime I didn't want (Hugo's Go binary, Eleventy's Node.js). The constraint was: one file, stdlib only, no installation ceremony beyond having Python on the box.

It turned out to fit a useful niche. Personal sites and small documentation trees don't need the kitchen sink — they need layouts, partials, Markdown, structured data, and a dev server. lintc does exactly that and nothing more. The whole compiler is one Python file you can read top-to-bottom in an hour, including tests.

The trade-off is real: lintc is not Hugo, not Eleventy, not Astro. There's no plugin ecosystem of templates, no theme marketplace, no first-class image optimization, no markdown extension marketplace. If you're building a 500-page documentation site for a SaaS product, this is the wrong tool. If you're building a personal site, a project page, or a small handful of docs and you want the build pipeline to fit in your head, lintc is the right shape.

It also doubles as a portfolio surface: every release of lintc is visible on its own engineering page on lintuxt.ai, embedded via lintc's own body_source field and the remote-sync plugin keeping the content in sync from this very README. The site you might be looking at is built by the thing you're reading about.

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.8.0.tar.gz (59.3 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.8.0-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lintc-0.8.0.tar.gz
Algorithm Hash digest
SHA256 5c29c17b351c2ced91eb6c0027b36017a0f5670fc7951d4f062f59db97c5d357
MD5 f81af2e0f9d413b54b0450e50b3af333
BLAKE2b-256 979edb2010d7c5465c86a54fc7a8a5c48de8c3f8f73154f744bf644a17a08956

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintc-0.8.0.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.8.0-py3-none-any.whl.

File metadata

  • Download URL: lintc-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 40.9 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c106918b1a092c9b3533868b9ad2eff51942428d93a42a95d0b0d7007b3f855
MD5 9cc0a0e1d441f34d9349a80ecffd187a
BLAKE2b-256 56697832e23bcf0b17230cb32f56324e8d0c104861900668303b542e677156c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lintc-0.8.0-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