code wiki / _hdl_build / nx_site_migrate.nx

nx_site_migrate.nx

buildroot/runtime/_hdl_build/nx_site_migrate.nx

2028 B45 linesdepth 4pulls 7 transitivereach 1 importersview sourcekind librarytopic site
docsdependenciesstructsconstsfunctions

about

nx_site_migrate.nx -- CLOSE the migration loop: foreign site -> import (nx_site_import) -> our blueprint -> REBUILD through the branded builder. The rebuilt site is SOVEREIGN (0 JS), token-driven, and ACCESSIBLE by construction (lang/title/viewport/landmarks/44px targets/focus-visible from wb_doc_open_branded + header/footer) -- so we don't just migrate a lock-in site, we IMPROVE it. REUSE: nx_site_import (mi_find_from), nx_web_builder, nx_brand_tokens. license_tier: ORIGINAL

dependencies 4 imports · 1 importers

nx_syscalls.nx nx_site_import.nx nx_web_builder.nx nx_brand_tokens.nx nx_site_migrate.nx nx_site_migrate_gate.nx

imports: nx_syscalls.nxnx_site_import.nxnx_web_builder.nxnx_brand_tokens.nx

imported by: nx_site_migrate_gate.nx

structs

none

consts

10const K_MAGIC_4096: i64 = 4096
11const K_MAGIC_4095: i64 = 4095
12const K_MAGIC_262144: i64 = 262144
13const K_MAGIC_262143: i64 = 262143

functions

16func mig_field(bp: *u8, n: i64, key: *u8, out: *u8, cap: i64) -> i64
called by 1: mig_rebuild calls 2: mi_find_frommi_strlen
29func mig_rebuild(bp: *u8, n: i64, brand: *u8, blen: i64, fd: i64) -> i64