Repository navigation
docs: rewrite the docs from scratch in 12 pages - #46
Conversation
Fold the Valibot, Zod and ArkType pages into tabs on Installation, move ESLint into the guide, and replace the env-spec profile page with a reference for app developers. Redirect the removed routes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
commit: |
There was a problem hiding this comment.
Important
Two compatibility and runtime-behavior claims should be corrected before merging.
Reviewed changes Reviewed the complete documentation rewrite and route migration, including all user-facing API, configuration, validation, type-generation, env-schema, ESLint, Nitro, and migration claims.
- Guide consolidation — Replaces the schema-library and integration sections with a 12-page guide/reference structure and redirects the old routes.
- Installation and usage — Adds Valibot, Zod, and ArkType tabs, typed composable examples, and deployment guidance.
- Validation behavior — Reframes build and server-start validation, coercion, schema modules, error handling, and request-scoped config.
- Schema and tooling reference — Documents generated types,
.env.examplesyntax, module options, ESLint, standalone Nitro, and ViteHub Env migration. - Render verification —
pnpm --dir docs buildcompletes successfully.
gpt-5.6-sol | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. Pushed a6c2fdb and resolved Pullfrog P1 Zod compatibility and P2 async-startup documentation findings. Both reproduced before repair. node verify-zod.mjs after passed snippet typechecks and URL cases on Zod 3.24.0/4.6.7; node verify-runtime.mjs after confirmed synchronous startup errors and asynchronous request rejection. git diff --check passed. ESLint excludes docs; its attempted command was interrupted during automatic installation. Host dependency setup rejected pre-existing minimumReleaseAgeExcludePrune; full validation awaits CI. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed the follow-up documentation fixes since the prior Pullfrog review.
- Restored Zod compatibility — Replaced the Zod 4-only
z.url()calls withz.string().url(), matching the documented Zod 3.24 minimum. - Qualified runtime failures — Updated the landing page to distinguish synchronous schemas that stop startup from asynchronous schemas whose failures surface on requests.
- Rechecked the docs build —
pnpm --dir docs buildcompletes successfully on the updated head, with only non-fatal dependency and bundler warnings.
gpt-5.6-sol | 𝕏

The docs had 17 pages for one composable and six options. Valibot, Zod and ArkType each had a page with the same schema in different syntax. The env-spec page read like a spec for people writing adapters ("Framework adapters must normalize..."), not for someone filling in a
.env.example. Several pages said the same thing twice.This rewrites them from scratch in 12 pages, using evlog's docs and their writing rules as the model: each page opens on what goes wrong, shows the fix, and says what it costs.
guide/: Introduction, Installation (Valibot, Zod and ArkType as tabs), Validation, Environment variables, Types,.env.exampleas schema, ESLint, Nitro, Migrate to ViteHub Envreference/: Configuration (options table,useSafeRuntimeConfig()signature, entry points) and env-spec syntax/schemas/*,/integrations/*and/guide/configurationredirect to their new pages. README links updated./guide/migrate-to-vitehub-env, whichsrc/module.tslinks to, keeps its URL.I took the error messages from real runs of the validators instead of copying the old ones. While checking claims against the source I found one the old docs got wrong. An inline Zod
.refine()/.superRefine()or ArkType.narrow()/.pipe()converts to JSON Schema without an error, and the server-start check then skips it. Valibottransform/checkand Zod.transform()fail the build instead. The Environment variables page now has a table for this.I haven't built the docs locally. The Vercel preview on this PR is the render check.