code wiki / _hdl_build / nx_docpub_publish.nx
nx_docpub_publish.nx
buildroot/runtime/_hdl_build/nx_docpub_publish.nx
about
nx_docpub_publish.nx -- the docs arc's PUBLISH LEG, wired to THE NISHI PUBLISHER (operator law: every push
flows through ONE publisher via pub_submit; NO workstream pushes directly -- the sites.elf outage fix).
Stages the WHOLE self-generated documentation SITE (index + reference set) by enqueueing one durable, flock'd,
sha256-identified REQUEST per page to the publisher intake; the publisher SHIPS. Docs are INTERNAL behind the
OPAQUE wall (operator 2026-06-21) so dest = the walled /wiki/reference/ doc-root. Proven against a DEDICATED
docpub queue; the publisher workstream promotes to the canonical queue + ships (coordinate). NEVER nx_aw_push.
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_publisher.nxnx_runpath.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const K_MAGIC_65536: i64 = 65536 |
functions
| 14 | func dpp_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 19 | func dpp_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func dpp_match(buf: *u8, p: i64, n: i64, needle: *u8) -> i64 |
| 25 | func dpp_contains(buf: *u8, n: i64, needle: *u8) -> i64 { var i: i64 = 0; while i < n { if dpp_match(buf, i, n, needle) == 1 { return 1 } i = i + 1 } return 0 } |
| 26 | func dpp_count(buf: *u8, n: i64, needle: *u8) -> i64 { var i: i64 = 0; var c: i64 = 0; while i < n { if dpp_match(buf, i, n, needle) == 1 { c = c + 1 } i = i + 1 } return c } |
| 27 | func dpp_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd >= 0 { sys_close(fd) } return 0 } |
| 28 | func dpp_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 32 | func dpp_cat(out: *u8, o: i64, s: *u8) -> i64 { var k: i64 = 0; while s[k] != (0 as u8) { out[o] = s[k]; o = o + 1; k = k + 1 } return o } called by 1: dpp_mk |
| 33 | func dpp_mk(prefix: *u8, name: *u8, suffix: *u8, out: *u8) -> i64 { var o: i64 = 0; o = dpp_cat(out, o, prefix); o = dpp_cat(out, o, name); o = dpp_cat(out, o, suffix); out[o] = 0 as u8; return o } |
| 36 | func dpp_one(qpath: *u8, name: *u8, ok: *i64) -> i64 |
| 45 | func main() -> i64 |