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: huajie-zhong/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.tar.gz (69.6 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-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: irminsul-0.1.0.tar.gz
  • Upload date:
  • Size: 69.6 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.tar.gz
Algorithm Hash digest
SHA256 95bbe2cfa4c3b7463712b7df697320e0681f1a5670dd295e9365ee054beeac0a
MD5 b9ba5426ae899fe5a0fe372cb2265ef6
BLAKE2b-256 0a074e468d34ff32ac46ec381d66421889933292294257c42d3ebc80696ec47f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: irminsul-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.6 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-py3-none-any.whl
Algorithm Hash digest
SHA256 4d9d964a84d9ab87af7a38409eb6e9fca86248c9a732e4a10c855b98a312bd8e
MD5 bc04a1d7323749564a9744d5d8a5e46c
BLAKE2b-256 047093e70cb57f3d911b683ba285e00ef83a9eeb57818c5dd9a17aa0a4009e01

See more details on using hashes here.

Provenance

The following attestation bundles were made for irminsul-0.1.0-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