Skip to content

feat: add static site generation with resumable islands - #61

Merged
Marcisbee merged 1 commit into
masterfrom
kode/5Ix7MrCp-add-simple-static-site-generation-with-i
Oct 22, 2026
Merged

Marcisbee merged 1 commit into
masterfrom
kode/5Ix7MrCp-add-simple-static-site-generation-with-i

Conversation

@Marcisbee

Copy link
Copy Markdown
Owner

Generate documentation and other static sites through radi/static. generateStaticSite renders async page content into complete HTML documents, validates routes before writes, and awaits an application-provided writer so storage and asset bundling remain independent of the runtime.

Interactive pages use the existing explicit resumption API. Their blocking bootstrap runs before interactive HTML; lazy handlers operate on the original DOM. Plain pages need no JavaScript. Native reactive functions are evaluated at build time: their markers do not identify client modules or capture closure state, so automatic activation of arbitrary closures is not supported.

Includes a complete two-page build/preview example, usage documentation, npm/Deno exports, and CI coverage. The example deploys as static files with two independently resumable counters. Output cleanup and atomic deployment remain the writer's responsibility.

Validation: 4 static-site tests passed, including real Chromium against generated files with JavaScript disabled, delayed handler loading, independent state, and DOM retention. All 312 existing browser tests and 10 server tests passed. npm build and Node smoke import of the packaged API passed. Refreshed against origin/master before handoff.

@Marcisbee
Marcisbee marked this pull request as ready for review October 22, 2026 11:13
@Marcisbee
Marcisbee merged commit 1d85a10 into master Oct 22, 2026
3 checks passed
@Marcisbee
Marcisbee deleted the kode/5Ix7MrCp-add-simple-static-site-generation-with-i branch October 22, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant