code wiki / _hdl_build / nx_site_build_run.nx

nx_site_build_run.nx

buildroot/runtime/_hdl_build/nx_site_build_run.nx

3039 B56 linesdepth 7pulls 14 transitivereach 0 importersview sourcekind tooltopic site
docsdependenciesstructsconstsfunctions

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

nx_site_compose.nx nx_syscalls.nx nx_site_build_run.nx

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

main rd_path sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pr_puts sys_write sys_mmap ↻ sys_read_file ↻ sys_openat_wr compose_build sys_mmap ↻ cmp_get cmp_klen cmp_line_match cmp_streq cmp_videos cmp_line_match ↻ cmp_copy vid_build vid_w sys_write ↻ vid_esc sys_mmap ↻ hs_escape hs_emit hs_emitb hs_emitb ↻ sys_write ↻ sgg_build sys_mmap ↻ cst_read sys_openat_rd ↻ sys_read ↻ sys_close ↻ sgg_put

structs

none

consts

12const P_IN: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_in" as *u8
13const P_OUT: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/nx_pub_out" as *u8

functions

15func 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 }
called by 1: main calls 1: sys_write
16func 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 }
called by 1: main calls 2: sys_mmapsys_write
19func rd_path(p: *u8) -> *u8
called by 1: main calls 2: sys_mmapsys_read_file
32func main() -> i64