Skip to main content

A documentation system for complex codebases. Enforces structural invariants in CI.

Project description

Irminsul

A documentation system for complex codebases. Designed to resist rot, scale with complexity, and survive philosophy shifts.

Irminsul is a Python CLI + composite GitHub Action that enforces structural invariants on your /docs tree in CI. The rules are simple: every fact has one home, every doc has one purpose, every cross-reference is bidirectional and machine-verifiable. The tool's job is to make sure those rules stay true while the codebase evolves.

Quickstart

pipx install irminsul
cd my-codebase
irminsul init

That scaffolds a 9-layer /docs skeleton, an irminsul.toml config, GitHub Actions workflows, and pre-commit hooks. Three commands, ten seconds, fully wired.

What it checks

Hard, blocking checks (deterministic, no LLM):

  • Frontmatter validity — required fields present, enums valid, IDs match filenames
  • Glob resolution — every describes glob resolves to ≥1 source file
  • Coverage uniqueness — every source file is claimed by exactly one most-specific doc
  • Internal link integrity — no broken [link](other.md) references
  • Schema-leak detection — no class/type definitions in component docs (those belong in the generated reference layer)

CI integration

on: pull_request
jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: <github-user>/irminsul@v0.1.0
        with:
          scope: hard

irminsul init writes this file for you.

License

AGPL-3.0-or-later. See LICENSE.

Reference

The full architectural reference for the doc system Irminsul enforces lives in docs/90-meta/doc-system.md.

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

irminsul-0.1.0.dev0.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

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

irminsul-0.1.0.dev0-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

Details for the file irminsul-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: irminsul-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 69.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for irminsul-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 7cc525eac7a1d29dd51dd5776df06c2c35ab2d243e229d3ed767ed9e7eb3d626
MD5 0772529ffca7cb63d71fef2cc69d3b2b
BLAKE2b-256 58d0bef65b41f1e93161da114b4fbbfa51afcab1a536ccda366d0e3deec17ff3

See more details on using hashes here.

Provenance

The following attestation bundles were made for irminsul-0.1.0.dev0.tar.gz:

Publisher: release.yml on huajie-zhong/Irminsul

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

File details

Details for the file irminsul-0.1.0.dev0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for irminsul-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 987a493d817390f00425fd5e5a03ef9debf5a96be9aceeb1fc8901105b7a3798
MD5 34ae017ba6855e2748b0b248cfdce20b
BLAKE2b-256 ae889aa3fafc95ce355977b12ae48efbdab075649f30c795fba92de9999fd884

See more details on using hashes here.

Provenance

The following attestation bundles were made for irminsul-0.1.0.dev0-py3-none-any.whl:

Publisher: release.yml on huajie-zhong/Irminsul

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