Update documentation and examples for clarity and consistency#223
Update documentation and examples for clarity and consistency#223
Conversation
- Removed the icon from the examples page for a cleaner look. - Updated the index page to include a new "Start with an example" card, enhancing navigation for users. - Adjusted the icon for the ArkType Documentation card to a globe for better representation. - Simplified descriptions in the quickstart page to improve readability and user engagement. - Standardized the integration section in meta.json for better organization. These changes aim to improve the user experience and streamline the documentation structure.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughDocumentation updates: adjusted icons and Card entries on docs pages, reorganized the Integrations navigation entries in meta.json, removed a front-matter Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer
participant Docs as Docs pages
participant Pkg as arkenv package
Dev->>Docs: update examples and docs imports
Docs->>Pkg: show usage: import arkenv, { type } from 'arkenv'
Note over Docs,Pkg: documentation reflects new import surface (default + named `type`)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (3)
apps/www/content/docs/index.mdx (1)
5-5: Remove unused icon importsBookOpen and Rocket aren’t used anymore; trim to avoid lint warnings/bundle bloat.
-import { BookOpen, Rocket, Globe } from "lucide-react"; +import { Globe } from "lucide-react";apps/www/content/docs/quickstart.mdx (2)
133-133: Align examples withcreateEnvAPIElsewhere docs switch to
createEnv, but this page still shows defaultarkenvin the code samples (Lines 39 and 112). Update both blocks for consistency.For the “Define the schema” block:
-import arkenv, { type } from 'arkenv'; - -export const env = arkenv({ +import { createEnv, type } from 'arkenv'; + +export const env = createEnv({ // Built-in validators DATABASE_HOST: "string.host", ... });For the “Use in your code” block:
-import arkenv from 'arkenv'; -export const env = arkenv({ +import { createEnv } from 'arkenv'; +export const env = createEnv({ DATABASE_HOST: "string.host", ... });
149-152: Fix examples link: remove unnecessary fragmentUse the same path as index.mdx to avoid a potentially broken anchor.
- href="/docs/examples#examples" + href="/docs/examples"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
apps/www/content/docs/examples.mdx(0 hunks)apps/www/content/docs/index.mdx(2 hunks)apps/www/content/docs/meta.json(1 hunks)apps/www/content/docs/morphs.mdx(2 hunks)apps/www/content/docs/quickstart.mdx(1 hunks)
💤 Files with no reviewable changes (1)
- apps/www/content/docs/examples.mdx
🔇 Additional comments (4)
apps/www/content/docs/meta.json (1)
9-11: Integrations nav simplification looks goodClearer section header and direct links improve readability.
apps/www/content/docs/index.mdx (1)
14-18: Cards update reads wellQuickstart without icon + new Examples card + Globe for ArkType are consistent with the simplified design.
apps/www/content/docs/quickstart.mdx (2)
141-147: Copy changes LGTMConcise descriptions improve scannability.
154-154: Card title matches How-to pageConsistent with the How-to section naming.
- Changed the import statement from `createEnv` to `arkenv` for clarity and consistency in the example code. - Updated the example to reflect the new import style, enhancing the documentation's accuracy. These changes improve the clarity of the documentation for users.
These changes aim to improve the user experience and streamline the documentation structure.
Summary by CodeRabbit