Skip to main content

Crate weave_content

Crate weave_content 

Source

Modules§

build_cache
cache
domain
Domain types for the OSINT case graph.
entity
html
Static HTML generator for case and entity pages.
nulid_gen
output
parser
registry
relationship
tags
timeline
verifier
writeback

Functions§

build_case_index
Build a case index: scan case files for front matter id: and H1 title.
build_case_output
Build a CaseOutput from a case file path. Handles parsing and ID writeback.
build_case_output_tracked
Build a CaseOutput from a case file path, tracking which entity files have already been written back. This avoids re-reading entity files from disk when multiple cases reference the same shared entity.
case_slug_from_path
Derive a case slug from a file path relative to content root.
collect_referenced_registry_entities
Collect registry entities referenced by relationships in this case. Sets the slug field on each entity from the registry’s file path.
generate_html_output
Generate static HTML files, sitemap, tag pages, and NULID index from built case outputs.
load_registry
Load entity registry from content root. Returns empty registry if no entity dirs exist.
load_tag_registry
Load tag registry from content root. Returns empty registry if no tags.yaml exists.
parse_full
Parse a case file fully: front matter, entities, relationships, timeline. Returns the parsed case, inline entities, and relationships (including NEXT from timeline).
resolve_case_files
Resolve case file paths from path argument. If path is a file, returns just that file. If path is a directory (or None), auto-discovers cases/**/*.md.
resolve_content_root
Resolve the content root directory.