code wiki / _hdl_build / nx_math_render_publish.nx

nx_math_render_publish.nx

buildroot/runtime/_hdl_build/nx_math_render_publish.nx

4636 B77 linesdepth 10pulls 11 transitivereach 0 importersview sourcekind tooltopic math
docsdependenciesstructsconstsfunctions

about

nx_math_render_publish.nx -- land /wiki/math_render.html LIVE through the GUARDED + VERSIONED publish path (vpub): snapshot a content-addressed rollback version, then the A3 fail-closed guard must ALLOW (every /wiki/ href resolves to a corpus slug) before the NAS push runs. ADDITIVE. Publishes, in order: the re-emitted formats_uxf hub + media_studio hub FIRST (their rendered prev/next + related furniture now link to the new math_render child -> keeps reachability=100 on the LIVE site), then math_render.html itself. The corpus set = all 21 live wiki slugs; a missing/dead /wiki/ link => the guard rejects with a dead-link verdict (fail-closed) -- the safety net that the walk gate proves GREEN locally before we ever push. REUSE: nx_wiki_versioned_publish vpub (mirrors nx_ims_search_publish exactly). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_wiki_versioned_publish.nx nx_syscalls.nx nx_math_render_publish.nx

imports: nx_wiki_versioned_publish.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ p_w sys_write ↻ mp_publish sys_mmap ↻ p_w ↻ p_num sys_mmap ↻ sys_write ↻ p_num ↻ sys_exit ↻

structs

none

consts

25const MP_EPOCH: i64 = 1781950000

functions

14func p_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 2: mp_publishmain calls 1: sys_write
15func p_num(v: i64) -> i64
called by 2: mp_publishmain calls 2: sys_mmapsys_write
27func mp_publish(slug: *u8, path: *u8, cs_ptr: *i64, cs_len: *i64, ncorpus: i64) -> i64
called by 1: main calls 3: sys_mmapp_wp_num
41func main() -> i64