diff --git a/apps/www/config/docs.ts b/apps/www/config/docs.ts index 17ad4885aa..48df75f2f0 100644 --- a/apps/www/config/docs.ts +++ b/apps/www/config/docs.ts @@ -89,6 +89,46 @@ export const docsConfig: DocsConfig = { }, ], }, + { + title: "Installation", + items: [ + { + title: "Next.js", + href: "/docs/installation/next", + items: [], + }, + { + title: "Vite", + href: "/docs/installation/vite", + items: [], + }, + { + title: "Remix", + href: "/docs/installation/remix", + items: [], + }, + { + title: "Astro", + href: "/docs/installation/astro", + items: [], + }, + { + title: "Laravel", + href: "/docs/installation/laravel", + items: [], + }, + { + title: "Gatsby", + href: "/docs/installation/gatsby", + items: [], + }, + { + title: "Manual", + href: "/docs/installation/manual", + items: [], + }, + ], + }, { title: "Components", items: [ diff --git a/apps/www/content/docs/installation/index.mdx b/apps/www/content/docs/installation/index.mdx index 6a5653b51f..c1adfdc032 100644 --- a/apps/www/content/docs/installation/index.mdx +++ b/apps/www/content/docs/installation/index.mdx @@ -45,19 +45,6 @@ description: How to install dependencies and structure your app.

Remix

- - - Gatsby - - -

Gatsby

-

Laravel

+ + + Gatsby + + +

Gatsby

+
+ +You can use the `-d` flag for defaults i.e `new-york`, `zinc` and `yes` for the css variables. + +```bash +npx shadcn@latest init -d +``` + + + ### Configure components.json You will be asked a few questions to configure `components.json`: @@ -23,40 +33,6 @@ Which color would you like to use as base color? › Zinc Do you want to use CSS variables for colors? › no / yes ``` -### App structure - -Here's how I structure my Next.js apps. You can use this as a reference: - -```txt {6-10,14-15} -. -├── app -│ ├── layout.tsx -│ └── page.tsx -├── components -│ ├── ui -│ │ ├── alert-dialog.tsx -│ │ ├── button.tsx -│ │ ├── dropdown-menu.tsx -│ │ └── ... -│ ├── main-nav.tsx -│ ├── page-header.tsx -│ └── ... -├── lib -│ └── utils.ts -├── styles -│ └── globals.css -├── next.config.js -├── package.json -├── postcss.config.js -├── tailwind.config.ts -└── tsconfig.json -``` - -- I place the UI components in the `components/ui` folder. -- The rest of the components such as `` and `` are placed in the `components` folder. -- The `lib` folder contains all the utility functions. I have a `utils.ts` where I define the `cn` helper. -- The `styles` folder contains the global CSS. - ### That's it You can now start adding components to your project.