Skip to main content

vhrd_zensical

spirit_level CI

Zensical book kit: code cards, glossary, abbreviations, lexers, build stamp, frame check, proofread display.

One Python package, vhrd-zensical, carries the Markdown extensions and lexers and the vz command, built from the same Rust workspace. A book pins one version of the kit and gets all of them at that version.

Use in a book

A release publishes prebuilt wheels to PyPI and the GitHub release (CPython 3.12+; Linux x86_64 and aarch64, glibc and musl; macOS x86_64 and arm64 in one universal2 wheel; Windows x86_64). A book pins the wheel, needs no Rust toolchain, and gets the Zensical release the kit is tested against with the zensical extra:

kit := "vhrd-zensical[zensical]==0.1.0"

book:
    uv run --with "{{ kit }}" vz --version

The same pin works in a book's pyproject.toml: dependencies = ["vhrd-zensical[zensical]==0.1.0"].

An unreleased commit still installs from git; the first uv run of a new commit builds the Rust part (about 1-2 minutes; needs a Rust toolchain), then uv caches it:

kit := "vhrd-zensical @ git+https://github.com/vhrdtech/vhrd_zensical@<sha>"

Status of each part: FEATURES.md.

Pages copied from other repositories

A book that copies pages from other repositories' checkouts gets their code links resolved against those repositories. Its assembler writes a sources file at every build (not kept in git), and the code link extension names it:

[project.markdown_extensions]
"vhrd_zensical.code_refs" = { crates = ["wire_weaver"], sources = "target/vz/sources.toml" }
format = 1

[[source]]
name = "ww_stdlib"                                    # unique
root = "/home/u/.cache/ww_book/ww_stdlib"             # the checkout: git root and cargo workspace root; absolute or relative to the project root
repository = "https://github.com/vhrdtech/ww_stdlib"
commit = "0123456789abcdef0123456789abcdef01234567"   # full hash checked out at root
crates = ["ww_logic_analyzer"]                        # library names; empty or left out: every library
on_crates_io = ["ww_logic_analyzer"]                  # package names: their cards link to docs.rs
pages = ["std_library/ww_logic_analyzer.md"]          # the copies, relative to the docs folder
  • vz refs (and vz prep) indexes each source's workspace at its commit, beside the book's own, into the one code index.
  • A link on a copied page resolves against its source's crates and files first, then the book's own; its card links the source's repository at that commit.
  • A name found in neither fails the build and names both places: [`Gone`]: no public item of ww_stdlib's or the book's crates has this name.
  • An index written before the sources file changed fails until vz prep runs again; a listed page missing from the docs folder fails vz refs.
  • The format's reference: vz_core::sources; its snapshot vz_core/tests/fixtures/sources/ok.toml. Readers ignore keys they do not know.

The book's frame

vz check checks a book's nav and pages against book_checks.toml at the project root:

outside = ["Reference", "Articles"]  # top-level nav sections after the ramp; their pages may have any level

[[part]]                             # the reading ramp, in nav order
title = "Basic"                      # a top-level nav section
level = "basic"                      # the level of every page in it: basic, advanced or nomicon

[bare_fences]                        # pages still holding bare `rust` fences, under the docs folder
"guide/old.md" = 3                   # how many it may hold; the count may only go down

It fails:

  • a ramp that steps down a level when the reader clicks next, or a page in a part of another level;
  • a top-level section that is neither a part nor a shelf in outside, or a part after a shelf;
  • a page without level: in its front matter, a page listed twice, a page not in the docs folder;
  • a rust fence that is not an include of a compiled source (--8<-- "path:section"), beyond the page's waived count; a Nomicon page may also show a sketch, marked title="sketch: ...";
  • a waived count higher than the page's bare fences, so counts only go down; a copied page (one the sources file lists) may hold fewer;
  • a file under <docs>/generated/ that no page includes.

Pages are read from the docs folder: a book that copies pages assembles them before vz check. The format's reference: vz_core::frame.

Proofread display

The review extension shows how much of each page has been proofread, from the book's glossator book export:

flowchart LR
  G["glossator book export"] --> J["target/vz/review.json"]
  J --> E["vhrd_zensical.review<br/>(Zensical build)"]
  E --> B["badge under the title"]
  E --> M["data-vz-review marks<br/>on headings and blocks"]
  K["button or r key"] --> S["vz-review.js"]
  S --> C["vz-review-on class<br/>shows the marks"]
  M --> C

The book turns it on:

[project]
extra_css = ["stylesheets/vz-review.css"]
extra_javascript = ["javascripts/vz-review.js"]

[project.markdown_extensions]
toc = {}                                                  # gives the headings the ids the file names
"vhrd_zensical.review" = { file = "target/vz/review.json" } # the default; written by the book before its build
book:
    mkdir -p target/vz
    glossator book export > target/vz/review.json
    uv run --with "{{ kit }}" vz build
  • A badge above the page's table of contents (at the right end of the first line where that sidebar is hidden): Read 82%, the percent green only at 100%, amber with · changed since when read lines changed since. Its tooltip names the last day: Last read and signed 26 Nov 2026. No badge when no line is read. Hovering a section's mark says when it was read.
  • Review marks, hidden by default: a thin bright-green bar at the text column's left edge beside each block read, amber when changed since, dashed when only part of the block is read, none unread. Hovering a bar says when it was read. Clicking the badge or the r key turns them on and off (not while a text field has focus); the choice is kept in the browser's localStorage.
  • A block takes the state of its own source lines, from the export's runs; a snippet line counts the blocks of the file it includes. When the page's Markdown does not split into as many blocks as it rendered, or the export has no runs, each block takes its section's state: a section runs from its heading to the next heading below the title.
  • A missing file, or one of a format the kit does not know, shows nothing: a build without glossator passes unchanged. A malformed file fails the build.
  • The file holds only counts, states and a day, never names, keys or signatures; the page shows nothing else.
  • vz prep and vz assets write the stylesheet and script. The format's reference: vz_core::review; its snapshot vz_core/tests/fixtures/review/ok.json.

Layout

Crate What
vz_core the book formats: types and parsers, no I/O
vz_refs the code index, the code cards, the proofread badge and marks, and their assets
vz_stamp the footer build stamp
vz_cli the vz command
vz_py the extension module vhrd_zensical._vz and the Python package (vz_py/python/vhrd_zensical)

Licence

Either of LICENSE-MIT or LICENSE-APACHE, at your option.

Metadata

Release files for vhrd-zensical 0.4.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 vhrd-zensical 0.4.0
File Size Uploaded Provenance Actions
vhrd_zensical-0.4.0.tar.gz 157.4 kB With provenance Details for vhrd_zensical-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vhrd-zensical 0.4.0
File Actions
vhrd_zensical-0.4.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for vhrd_zensical-0.4.0-cp312-abi3-win_amd64.whl
vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details for vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl
vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_aarch64.whl CPython 3.12 abi3 Linux musl 1.2+ ARM64 Details for vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_aarch64.whl
vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
vhrd_zensical-0.4.0-cp312-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64, macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64) Details for vhrd_zensical-0.4.0-cp312-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 14.1 MB

Release files / vhrd_zensical-0.4.0.tar.gz

Download URL vhrd_zensical-0.4.0.tar.gz
Size 157.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70711a424f228befdd51aef929df55c80b20a152689eaedd2974e895ce181326
BLAKE2b-256 checksum
How to use checksums
0d6a313dca856a39b1b8cd9956ca76146b7ea86f1c7b475b48a87d19f639520f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-win_amd64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-win_amd64.whl
Size 1.9 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
83941ed6cf7350c357a9f4104640be555ed255ebd7e8c10a0e8aa733a080e233
BLAKE2b-256 checksum
How to use checksums
3b9d9102b7e6ae25d0224e6ca52fe44e73ec15676039d6e63a3d36b1d2149842
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_x86_64.whl
Size 2.3 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
10841b38f3504153113af1445c08f050c8e7c1ace4180074ffdafc1a7499d699
BLAKE2b-256 checksum
How to use checksums
7139a3c2161a82e613d615a64dda4d5d41c32545eebbdd9782c26d6926190e96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_aarch64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-musllinux_1_2_aarch64.whl
Size 2.1 MB
Tags CPython 3.12 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
8e4704155c9904bcd5f92c51c8d136c3477163fbf7dd6d68ca9d2fc115517fad
BLAKE2b-256 checksum
How to use checksums
bacc73d9bb49c14b01963566a7aedccee2604d62222e2447e173794f4553bc11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.0 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
77b0159defa3469b6b42e8ca5852d724705d0fd8c848ab19f13341b213a2eaaf
BLAKE2b-256 checksum
How to use checksums
5f405441072213eb310d7793529488e65fbf8f55e1972c2da30f085fb9dc1373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.0 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
ea4581b186e9d64ba9a1f54e65059bf7ced3290517662887bc314ff35d784dff
BLAKE2b-256 checksum
How to use checksums
68b25cb32fb59e53c51360ef565ee363c72988e5ced4ab2a32081ab6348f5980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / vhrd_zensical-0.4.0-cp312-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL vhrd_zensical-0.4.0-cp312-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 3.7 MB
Tags CPython 3.12 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e6662b13ead7558ca36440ba0b41cee0f0c6f8f2d85d9e58ccdff064edbc0f53
BLAKE2b-256 checksum
How to use checksums
59e6da2269df994e5a109513fd8cff0965eab2fe721445ea28af0d058850d8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for vhrd-zensical 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for vhrd_zensical-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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