Tests: align cek content-page names with injector output
Load sx/sx/geography/cek/ recursively so content/demo/freeze index.sx
pages bind as ~geography/cek/{content,demo,freeze}. Update docs.sx
cek-page dispatch + test-examples cek:content-pages suite to reference
those real names (were stale ~geography/cek/cek-content etc.).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2483,7 +2483,9 @@ let run_spec_tests env test_files =
|
||||
(* Load one-per-file islands from _islands/ directories.
|
||||
Using sx_sx_dir as base matches the live server's naming:
|
||||
sx/sx/geography/<domain>/_islands/<stem>.sx -> ~geography/<domain>/<stem>. *)
|
||||
load_dir_recursive (Filename.concat sx_geo_dir "cek/_islands") sx_sx_dir;
|
||||
(* cek/: recursive load picks up content/demo/freeze page index.sx files
|
||||
(→ ~geography/cek/content etc.) plus _islands/*.sx (→ ~geography/cek/<stem>). *)
|
||||
load_dir_recursive (Filename.concat sx_geo_dir "cek") sx_sx_dir;
|
||||
let sx_reactive_dir = Filename.concat sx_geo_dir "reactive" in
|
||||
if Sys.file_exists (Filename.concat sx_reactive_dir "_islands") then
|
||||
load_dir_recursive (Filename.concat sx_reactive_dir "_islands") sx_sx_dir;
|
||||
|
||||
Reference in New Issue
Block a user