Skip to content

Commit

Permalink
fix(cli): fix schema validation error on init command
Browse files Browse the repository at this point in the history
  • Loading branch information
ruru-m07 committed Aug 18, 2024
1 parent 7d61f6a commit 844cdaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 40 deletions.
27 changes: 1 addition & 26 deletions apps/www/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
# fumanama-docs

This is a Next.js application generated with
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).

Run development server:

```bash
npm run dev
# or
pnpm dev
# or
yarn dev
```

Open http://localhost:3000 with your browser to see the result.

## Learn More

To learn more about Next.js and Fumadocs, take a look at the following
resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs
# www
12 changes: 0 additions & 12 deletions apps/www/content/docs/components/select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,3 @@ The `Select` component is built using several subcomponents that you can import
This allows for fine-grained control and customization over the appearance and behavior of the select dropdown.

For more detailed information on each subcomponent and additional examples, please refer to the documentation for each individual component.

---

## Conclusion

The `Select` component in the `ruru-ui` library offers a robust solution for creating dropdown menus in your application. By leveraging its flexible API and various customization options, you can create user-friendly and accessible dropdown menus that fit seamlessly into your application's design.

Feel free to experiment with the examples provided and explore the various props to see how you can best utilize the `Select` component in your projects.

---

This documentation provides a comprehensive overview of the `Select` component, including usage examples, prop descriptions, and subcomponent details. By following this structure, you ensure that users can easily understand how to use and customize the component in their projects.
5 changes: 4 additions & 1 deletion apps/www/content/docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,17 @@ import { Step, Steps } from "fumadocs-ui/components/steps";
// [!code word:(Leave blank if not)]
// [!code word:@/components/ui]
// [!code word:@/lib/utils]
// [!code word:@/provider]
// [!code word:@/interfaces]
◇ Would you like to use TypeScript (recommended)? Yes
◇ use default configuration. No
◇ Where is your global CSS file? ./app/globals.css
◇ Where is your tailwind.config.js located? ./tailwind.config.js
◇ Would you like to use CSS variables for colors? Yes
◇ Are you using a custom tailwind prefix eg. tw-? (Leave blank if not)
◇ Configure the import alias for components: @/components/ui
◇ Configure the import alias for utils: @/lib/utils
◇ Configure the import alias for provider: @/provider
◇ Configure the import alias for interfaces: @/interfaces
◇ Would you like to use RSC ? Yes
◇ Write configuration to ruru.json. Proceed? Yes
Expand Down
2 changes: 1 addition & 1 deletion apps/www/public/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "string"
}
},
"required": ["config", "css", "baseColor", "cssVariables"]
"required": ["config", "css", "cssVariables"]
},
"rsc": {
"type": "boolean"
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/utils/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ const explorer = cosmiconfig("components", {

export const rawConfigSchema = z
.object({
$schema: z
.string()
.optional()
.default("https://ruru-ui.vercel.app/schema.json"),
rsc: z.coerce.boolean().default(false),
tsx: z.coerce.boolean().default(true),
tailwind: z.object({
Expand Down

0 comments on commit 844cdaa

Please sign in to comment.