code wiki / _hdl_build / nx_docpub_ship.nx

nx_docpub_ship.nx

buildroot/runtime/_hdl_build/nx_docpub_ship.nx

6685 B107 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind tooltopic docpub
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_publisher.nx nx_runpath.nx nx_docpub_ship.nx

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

main dps_w sys_write sys_openat_rd sys_exit sys_mmap sys_openat_wr sys_close sys_getdents64 dirent_reclen dirent_name dps_ends_html dps_cat pub_submit_to sys_mmap ↻ pub_sha_file sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word sha256_final blk_set_byte ↻ sha256_compress ↻ sys_munmap pub_hexd pub_build_rec

structs

none

consts

12const K_MAGIC_65536: i64 = 65536
13const K_MAGIC_2000: i64 = 2000
14const K_MAGIC_1048576: i64 = 1048576

functions

16func 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 }
called by 1: main calls 1: sys_write
21func dps_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func 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
23func dps_ends_html(nm: *u8) -> i64
called by 1: main
29func dps_match(buf: *u8, p: i64, n: i64, needle: *u8) -> i64
called by 1: dps_contains
34func 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 }
called by 1: main calls 1: dps_match
35func 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
36func dps_hexrun(buf: *u8, n: i64, need: i64) -> i64
called by 1: main calls 1: dps_ishex
41func dps_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
48func main() -> i64