Skip to main content

hedron-docs

Experimental Markdown compiler and Hedron application toolkit.

hedron-docs turns a bounded Markdown corpus into a deterministic JSON manifest and renders that manifest through native Hedron components. The 0.5 surface is intentionally experimental and may change:

Package maturity: Beta tooling-grade · Repository package version: 0.5.0 · Import: hedron_docs

from hedron_docs import compile_site, create_docs_app, load_config

config = load_config("hedron-docs.toml")
manifest = compile_site(config)
app = create_docs_app(manifest)

Local images and linked files are validated, fingerprinted, and embedded in the immutable manifest; the app serves them from /_hedron-docs/assets/... with content hashes and bounded sizes.

schema_version = 4

[site]
title = "Project docs"
docs_dir = "docs"
base_url = "https://docs.example.com"

[build]
output = "build/hedron-docs/site.json"
max_source_bytes = 2000000
max_asset_bytes = 10000000
max_nodes = 10000
max_depth = 64
max_table_cells = 10000
max_code_blocks = 200
max_code_block_bytes = 256000
max_directives = 100
max_query_length = 200

The 0.4 compiler lowers CommonMark, tables, definition lists, footnotes, admonitions, details, content tabs, API directives, and allowlisted demo references directly from parser tokens into a closed typed AST, then renders them through native Hedron primitives. Headings expose stable alias anchors; code and tables are responsive; code blocks include language labels and native copy controls. Every parsed node carries a stable source span. Raw HTML and unknown extension syntax fail with a diagnostic containing a code, title, location, explanation, and remediation.

The 0.5 application shell is Hedron-native: it provides accessible skip links and landmarks, responsive primary/mobile navigation, breadcrumbs, release banners, source actions, and a no-JavaScript color-mode preference form.

The package is not a drop-in MkDocs plugin. import-mkdocs reads site metadata, navigation, and exclusions as a migration aid; it never executes arbitrary MkDocs plugins or theme code.

hedron-docs check hedron-docs.toml
hedron-docs build hedron-docs.toml
hedron-docs serve hedron-docs.toml
hedron-docs import-mkdocs mkdocs.yml

The repository proving app is available at apps/hedron-docs/app.py:app and can be started with uv run uvicorn --app-dir apps/hedron-docs app:app.

This package is experimental and is not part of Hedron's stable support matrix.

Release files for hedron-docs 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hedron-docs 0.5.0
File Size Uploaded
hedron_docs-0.5.0.tar.gz 39.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hedron-docs 0.5.0
File Interpreter ABI Platform
hedron_docs-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 84.0 kB

Release files / hedron_docs-0.5.0.tar.gz

Download URL hedron_docs-0.5.0.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bc85e0810f7cd7ee80141b8be2959cab396ca38094af9f17ac5e1f4029b968ae
BLAKE2b-256 checksum
How to use checksums
6d32bab8696841ce1b6c504b441c586d28715e6e925b36487b06082406395ed6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hedron_docs-0.5.0-py3-none-any.whl

Download URL hedron_docs-0.5.0-py3-none-any.whl
Size 44.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b0231732b5db424a5d138f1a6970dfc998f3ce08860c465c1fe75593e1a9966
BLAKE2b-256 checksum
How to use checksums
6aa53c9929d6ea530dc2a22c746b0c289a9c294289cd07ccbd8e6ce159773e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.5.1

2 release files

This release

0.5.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page