From 1f0f605617a45233cdaec927e6b34406ffdb948f Mon Sep 17 00:00:00 2001 From: Justin Schroeder Date: Thu, 11 Jun 2026 13:26:30 -0400 Subject: [PATCH] fix(docs): render all code example languages at build time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The non-React language panes are Nuxt server components mounted lazily on tab click. On the statically deployed site there is no server to answer the runtime island request, so the Vue/Solid/Native/Marko tabs rendered empty (#174). All panes now render during prerender and toggle with v-show — the highlighted HTML ships in the static page, so the client-perf benefit of server components is preserved. Prerendering all panes also surfaced a build-breaking error the lazy islands had been hiding: docs/examples/config/config.ts mirrors ParentConfig and still used the unparameterized event handler types (TS2314 after the #186 fix) — twoslash rejected the sample and the island 500'd. Updated to SortEvent et al. Verified: nuxt generate succeeds (71 island routes prerendered, zero errors) and the generated index.html contains raw-code containers for all five languages. Fixes #174. --- docs/components/CodeExample.vue | 20 ++++++++++++-------- docs/examples/config/config.ts | 8 ++++---- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/components/CodeExample.vue b/docs/components/CodeExample.vue index 2637a3e..55f639f 100644 --- a/docs/components/CodeExample.vue +++ b/docs/components/CodeExample.vue @@ -1,6 +1,6 @@