code wiki / _hdl_build / nx_site_wholesale.nx
nx_site_wholesale.nx
buildroot/runtime/_hdl_build/nx_site_wholesale.nx
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
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
structs
| none |
consts
| 10 | const SW_MAGIC_1024: i64 = 1024 |
| 11 | const SW_MAGIC_262144: i64 = 262144 |
| 13 | const SW_MAXPG: i64 = 64 |
| 14 | const SW_NAMEW: i64 = 96 |
| 15 | const SW_SEQW: i64 = 200 |
| 16 | const SW_MAXNAV: i64 = 8 |
functions
| 19 | func sw_arch_code(nm: *u8, nl: i64) -> i64 |
| 35 | func sw_cp(src: *u8, a: i64, b: i64, dst: *u8, cap: i64) -> i64 called by 1: main |
| 43 | func sw_bar(s: *u8, p: i64, e: i64) -> i64 called by 1: main |
| 48 | func sw_starts(s: *u8, p: i64, e: i64, lit: *u8) -> i64 called by 1: main |
| 57 | func 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 |
| 59 | func main(argc: i64, argv: *i64) -> i64 |