code wiki / (root) / nx_docpub_tree.nx

nx_docpub_tree.nx

buildroot/runtime/nx_docpub_tree.nx

8259 B112 linesdepth 8pulls 14 transitivereach 0 importersview sourcekind tooltopic docpub
docsdependenciesstructsconstsfunctions

about

nx_docpub_tree.nx -- R1-scale-2: generate the documentation site for a WHOLE DIRECTORY of organs (not a curated handful) by walking it struct-free via getdents64 -- the "Javadoc for the ecosystem" payoff. For each <name>.nx it renders a REFERENCE page from source (shared nx_docgen_lib core: header + signatures + imports + syntax-highlight + cross-links) and builds a section index. Demonstrated on runtime/wiki (the wiki engine documenting itself); the dir is the one knob -> reusable for any subtree. JPL discipline: bounded loop, LOUD on cap. Sovereign, zero third-party. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_docgen_lib.nx nx_docpub_render.nx nx_docpub_tree.nx

imports: nx_syscalls.nxnx_docgen_lib.nxnx_docpub_render.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main dgw sys_write sys_openat_rd dgn sys_mmap sys_write ↻ sys_exit sys_mmap ↻ dg_cat sys_getdents64 dirent_reclen dirent_name dgt_ends_nx dgt_base dg_rdfile sys_openat_rd ↻ sys_read sys_close dg_render dg_cat ↻ sys_mmap ↻ dg_first_doc_line dg_contains dg_catb_esc dg_cat ↻ dpr_atline dpr_matches dpr_isidc dg_writefile sys_openat_wr sys_write ↻ sys_close ↻ dg_first_doc_line ↻ dg_catn sys_mmap ↻ dg_catb_esc ↻ sys_close ↻ dg_contains ↻

structs

none

consts

none

functions

13func dgt_ends_nx(nm: *u8) -> i64
called by 1: main
19func dgt_base(nm: *u8, out: *u8) -> i64
called by 1: main
27func main(argc: i64, argv: *i64) -> i64