Skip to main content

Module ctx_doc

Module ctx_doc 

Source
Expand description

ctx_doc: the project’s documentation in its Hive vault (C0 2.2 docs).

Reads come from the local replica, so they work offline and cost no request. Writes are queued as signed events in the replica and sent in the background (lean_ctx_hive::background); a write never waits for Hive. Links are /slug#heading for agents and hive:<id> on the wire (lean_ctx_doc::links).

Structs§

Args
The arguments of one call.

Functions§

commit_local
One local write action (write, edit, note, confirm, move, delete) as one revision of root’s local store, planned under its lock.
handle
Runs one call for the checkout at root.
plan_write
The events of a write action against the current space; pinned are the anchors pins resolved against the checkout.
read
The read actions, from the replica’s view alone.
valid_slug
C0 2.2 slug: seg(/seg){0,7}, seg [a-z0-9]+(-[a-z0-9]+)*, ≤ 128 bytes.