code wiki / _hdl_build / nx_docpub_ship.nx
nx_docpub_ship.nx
buildroot/runtime/_hdl_build/nx_docpub_ship.nx
about
nx_docpub_ship.nx -- SHIP the self-generated documentation site TO THE NISHI PUBLISHER (operator: "ship to
the nishi publisher", 2026-06-21). Walks the whole generated site dir (web_assets/docgen, getdents) and submits
EVERY page to the publisher's CANONICAL intake via pub_submit -> knowledge/publish/queue.tsv (APPEND, flock'd,
sha256-identified; NEVER truncates, so other workstreams' queued requests are untouched). Docs are INTERNAL
behind the OPAQUE wall, so dest = sites/nishifamily/wiki/reference/<page>. This organ hands the docs TO the
publisher; the publisher workstream promotes + ships + serves (coordinate). NEVER calls 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 |
| 13 | const K_MAGIC_2000: i64 = 2000 |
| 14 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 16 | func dps_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 21 | func dps_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func dps_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: main |
| 23 | func dps_ends_html(nm: *u8) -> i64 called by 1: main |
| 29 | func dps_match(buf: *u8, p: i64, n: i64, needle: *u8) -> i64 called by 1: dps_contains |
| 34 | func dps_contains(buf: *u8, n: i64, needle: *u8) -> i64 { var i: i64 = 0; while i < n { if dps_match(buf, i, n, needle) == 1 { return 1 } i = i + 1 } return 0 } |
| 35 | func dps_ishex(c: i64) -> i64 { if c >= 48 { if c <= 57 { return 1 } } if c >= 97 { if c <= 102 { return 1 } } return 0 } called by 1: dps_hexrun |
| 36 | func dps_hexrun(buf: *u8, n: i64, need: i64) -> i64 |
| 41 | func dps_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 48 | func main() -> i64 |