code wiki / _hdl_build / nx_figures_publish.nx

nx_figures_publish.nx

buildroot/runtime/_hdl_build/nx_figures_publish.nx

4734 B76 linesdepth 10pulls 12 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_figures_publish.nx -- land /wiki/figures.html LIVE through the GUARDED + VERSIONED publish (vpub): snapshot a content-addressed rollback version, then the A3 fail-closed guard must ALLOW (every /wiki/<slug>.html href resolves to a corpus slug) before the NAS push runs. ADDITIVE. Publishes, in order: the re-emitted SEARCH page FIRST (its rendered prev/next furniture now links to the new figures child -> keeps figures non-orphan + reachability=100 on the LIVE site), then figures.html itself. Corpus set = all 22 live wiki slugs; a missing/dead /wiki/ link => the guard rejects (fail-closed) -- the safety net the walk gate already proves GREEN locally before we push. The 3 downloadable data files (figures_data.{csv,json,tsv}) are pushed by the SEPARATE process nx_figures_data_push (each is a static asset, not a corpus page). REUSE: nx_wiki_versioned_publish vpub (mirrors nx_math_render_publish exactly). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_wiki_versioned_publish.nx nx_itoa_lib.nx nx_syscalls.nx nx_figures_publish.nx

imports: nx_wiki_versioned_publish.nxnx_itoa_lib.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 ↻ fq_publish sys_mmap ↻ p_w ↻ p_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num nxi_buf sys_write ↻ sys_munmap p_num ↻ sys_exit ↻

structs

none

consts

24const FQ_EPOCH: i64 = 1782000000

functions

16func 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: fq_publishmain calls 1: sys_write
21func p_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: fq_publishmain calls 1: nxi_out
26func fq_publish(slug: *u8, path: *u8, cs_ptr: *i64, cs_len: *i64, ncorpus: i64) -> i64
called by 1: main calls 3: sys_mmapp_wp_num
40func main() -> i64