code wiki / _hdl_build / nx_site_wholesale.nx

nx_site_wholesale.nx

buildroot/runtime/_hdl_build/nx_site_wholesale.nx

10236 B237 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind tooltopic site
docsdependenciesstructsconstsfunctions

about

nx_site_wholesale.nx -- R-SITESHAPE of the SITE FACTORY: EMIT a complete multi-page site from a `site:` graph record ("lego up a site / pass it along wholesale" -- the OUTPUT half of R-WHOLESITE). Reads the content-addressed site graph (pages + per-page archetype + section-seq + nav edges) from the corpus and re-emits the WHOLE site: same relative page paths (subdirs preserved), each page composed SEQ-FAITHFULLY by the R5 composer, a shared nav built from the graph's own index edges (not the factory default), plus self-emitted sitemap.xml + robots.txt. Content = archetype defaults or an optional .req brief. usage: nx_site_wholesale <corpus-prefix> <site-key> <docroot> <domain> [reqfile] license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_site_archetype.nx nx_site_wholesale.nx

imports: nx_site_archetype.nx

imported by: nobody (leaf or entry point)

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

main sa_w sa_req_load ss_readall sys_openat_rd sys_lseek sys_mmap sys_read sys_close ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall ↻ sys_munmap ss_scan_seglist ss_len sys_mmap ↻ ss_cat ↻ ss_readall ↻ ss_r32 sw_starts sw_bar sw_cp sw_arch_code ti_arch_name ti_cat sw_eqz sa_cat ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ↻ ss_cat ↻ ss_loadfile sys_map_file

structs

none

consts

10const SW_MAGIC_1024: i64 = 1024
11const SW_MAGIC_262144: i64 = 262144
13const SW_MAXPG: i64 = 64
14const SW_NAMEW: i64 = 96
15const SW_SEQW: i64 = 200
16const SW_MAXNAV: i64 = 8

functions

19func sw_arch_code(nm: *u8, nl: i64) -> i64
called by 1: main calls 1: ti_arch_name
35func sw_cp(src: *u8, a: i64, b: i64, dst: *u8, cap: i64) -> i64
called by 1: main
43func sw_bar(s: *u8, p: i64, e: i64) -> i64
called by 1: main
48func sw_starts(s: *u8, p: i64, e: i64, lit: *u8) -> i64
called by 1: main
57func sw_eqz(a: *u8, b: *u8) -> i64 { var i: i64=0; while 1==1 { if (a[i] as i64)!=(b[i] as i64) { return 0 } if a[i]==(0 as u8) { return 1 } i=i+1 } return 1 }
called by 1: main
59func main(argc: i64, argv: *i64) -> i64