code wiki / _hdl_build / nx_site_build_run.nx
nx_site_build_run.nx
buildroot/runtime/_hdl_build/nx_site_build_run.nx
about
nx_site_build_run.nx -- RUNNABLE publish-build: read a .site blueprint path (from a config file) and an
output path, build the site through the SOVEREIGN engine (nx_sitegen_parse + nx_sitegen), and write the
HTML to the output path. This is the build half of the autonomous publish loop: a .site DATA file in ->
a built page out, no AI. The output is then streamed live by nx_aw_push. Config (persistent, survives WSL
/tmp wipes):
/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_in = absolute path of the .site blueprint
/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_out = absolute path to write the built HTML
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_site_compose.nxnx_syscalls.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
| 12 | const P_IN: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_in" as *u8 |
| 13 | const P_OUT: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_out" as *u8 |
functions
| 15 | func pr_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func pr_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 } |
| 19 | func rd_path(p: *u8) -> *u8 |
| 32 | func main() -> i64 |