diff --git a/apps/www/README.md b/apps/www/README.md index 9209e3c..b678286 100644 --- a/apps/www/README.md +++ b/apps/www/README.md @@ -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 diff --git a/apps/www/content/docs/components/select.mdx b/apps/www/content/docs/components/select.mdx index d4e3a63..dde836e 100644 --- a/apps/www/content/docs/components/select.mdx +++ b/apps/www/content/docs/components/select.mdx @@ -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. diff --git a/apps/www/content/docs/installation.mdx b/apps/www/content/docs/installation.mdx index 91918bf..c3ac520 100644 --- a/apps/www/content/docs/installation.mdx +++ b/apps/www/content/docs/installation.mdx @@ -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 diff --git a/apps/www/public/schema.json b/apps/www/public/schema.json index fcb3294..d1fdd76 100644 --- a/apps/www/public/schema.json +++ b/apps/www/public/schema.json @@ -18,7 +18,7 @@ "type": "string" } }, - "required": ["config", "css", "baseColor", "cssVariables"] + "required": ["config", "css", "cssVariables"] }, "rsc": { "type": "boolean" diff --git a/packages/cli/src/utils/get-config.ts b/packages/cli/src/utils/get-config.ts index 5437fec..da984af 100644 --- a/packages/cli/src/utils/get-config.ts +++ b/packages/cli/src/utils/get-config.ts @@ -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({