A simple monorepo for managing multiple documentation and website projects.
websites/
├── starlight/ # Starlight (Astro) based website
├── fumadocs/ # Fumadocs (Next.js) based website
└── ... # Add more websites as needed
- Node.js 18.0.0 or higher
- npm, yarn, or pnpm
From the root directory:
npm installThis will install dependencies for all workspaces.
- Navigate to the appropriate directory under
websites/ - Import or initialize your website project there
- The monorepo workspace configuration will automatically recognize it
cd websites/starlight
npm create astro@latest -- --template starlightcd websites/fumadocs
# Follow the official Fumadocs installation guide at:
# https://fumadocs.vercel.app/docs/getting-started
npx create-fumadocs-app@latestNavigate to any website directory and use its standard commands:
cd websites/starlight
npm run dev # Start development server
npm run build # Build for production- Shared Dependencies: Common dependencies are hoisted to the root
- Isolated Projects: Each website maintains its own configuration
- Simple Structure: Easy to add, remove, or migrate projects
- Flexible: Works with any npm-compatible project
- Starlight: For building documentation sites with Astro
- Fumadocs: For building documentation with Next.js
- Each website directory contains its own README with specific instructions
- You can use any package manager (npm, yarn, pnpm) - workspace features work with all
- Projects can be developed independently or together
- Simply copy/paste existing projects into the appropriate directories