Skip to main content

Module inspect

Module inspect 

Source
Expand description

zenith inspect command — module wiring.

  • document — error type, tree types, tree builders, node finder, geometry helpers, human renderers, and the public run entry point.
  • recipes — recipe-block JSON builder and human renderer.

Modules§

recipes
Recipe-block rendering for zenith inspect.

Structs§

InspectCmdErr
Error produced by the inspect command.
InspectNodeOutput
The subtree rooted at a single found node (used for --node <ID>).
InspectOutput
The top-level JSON envelope for inspect.
NodeEntry
A single node in the inspect tree.
NodeGeometry
The geometry summary emitted per node. Missing fields are None when the node kind does not carry that property (e.g. polygon has no bbox).
PageEntry
A page in the inspect tree.

Functions§

build_doc_tree
Build the full page tree for all pages in the document (in order).
find_node_tree
Search all pages (depth-first, in source order) for a node with the given id. Returns a fully-built NodeEntry subtree when found.
run
Run zenith inspect.
summary
Build a token-minimal structured summary of a document’s node tree.