Skip to main content

Module id

Module id 

Source
Expand description

Stable node ID scheme based on repository-relative path slugs.

Collision-resistant across directories:

Relative pathNode id
docs/concepts/raft.mddocs/concepts/raft
Notes/Foo Bar.mdnotes/foo-bar

IDs are lowercase, /-separated, and extension-stripped. They are the primary key in SQLite and the string key in the CSR id table.

Functionsยง

content_hash
Compute a hex BLAKE3 content hash for change detection.
node_id_from_rel_path
Build a stable node id from a workspace-relative file path.
rel_path_from_workspace
Make a path relative to workspace, falling back to the path itself.
resolve_link_target
Resolve a WikiLink target string against known node ids / aliases / titles.