code wiki / (root) / nx_doc_inref.nx

nx_doc_inref.nx

buildroot/runtime/nx_doc_inref.nx

2961 B93 linesdepth 7pulls 12 transitivereach 1 importersview sourcekind librarytopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_inref.nx -- incoming-reference counter for substrate docs. For each doc, counts how many OTHER docs contain a [[doc-name]] reference to it. Surfaces top-N most-referenced docs as data- driven V2 backfill priority targets. Composes nx_grep + nx_string_ops + nx_dir + nx_doc_census walker pattern. Substrate's first OPERATIONAL doc-graph analysis primitive -- moves beyond aggregate compliance to substrate-aware "which docs MATTER" visibility. **Quadrant:** REFERENCE (Diátaxis) **Topic Type:** REFERENCE (DITA) **Status:** DRAFT **Trust State:** WRITTEN_UNTESTED **Competitive State:** UNCLASSIFIED

dependencies 5 imports · 1 importers

nx_syscalls.nx nx_string_ops.nx nx_dir.nx nx_grep.nx nx_grep_rt.nx nx_doc_inref.nx nx_doc_inref_test.nx

imports: nx_syscalls.nxnx_string_ops.nxnx_dir.nxnx_grep.nxnx_grep_rt.nx

imported by: nx_doc_inref_test.nx

structs

61struct NxInrefContents

consts

none

functions

27func nx_doc_build_inref_pattern(
called by 1: main
66func nx_doc_count_inref_across_docs(
called by 1: main calls 1: nx_grep_any
87func nx_doc_should_skip_self(
called by 1: main