Build beautiful, fast, and modern documentation sites with ease.
Devdocs is an open-source platform that helps you create stunning, feature-rich documentation sites using a powerful and intuitive CLI. It's built on a modern stack including Next.js, Contentlayer, and Tailwind CSS, giving you a first-class developer experience.
- π Blazing Fast: Built on Next.js 14 with the App Router for optimal performance.
- βοΈ MDX-Powered: Write documentation in Markdown and embed React components seamlessly.
- π Type-Safe Content: Leverages Contentlayer to validate your content and provide full type-safety.
- π¨ Customizable & Accessible UI: A rich set of pre-built components from the
packages/uilibrary. Built with Radix UI and styled with Tailwind CSS, they are fully themeable, accessible, and ready to use in your MDX files. - βοΈ Simple CLI: Get your documentation site up and running in seconds with
devdocs-cli. - ** monorepo Ready:** Structured as a Turborepo monorepo for scalability and maintainability.
Get your Devdocs site running in just a few commands:
-
Create a new site:
npx devdocs-cli create my-awesome-docs
-
Navigate to your new directory:
cd my-awesome-docs -
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
Your new documentation site is now running at http://localhost:3000.
This project is a monorepo managed by Turborepo and pnpm workspaces.
/
βββ apps/
β βββ web/
| βββ content/docs/
| βββ introduction
| βββ UI
| βββ src/
| βββ app/
| βββ components/
| βββ lib/
| βββ types
# Main marketing & documentation site
βββ packages/
β βββ cli/ # Scaffolding CLI (devdocs-cli)
β βββ core/ # Core logic for content processing
β βββ ui/ # Shared React UI components
βββ templates/
βββ next-devdocs/ # Default Next.js starter template
Devdocs includes a comprehensive set of UI components in the packages/ui library, designed to make your documentation beautiful and interactive right out of the box.
- Built for Documentation: Components like
Card,Tabs,Callout, andCodeBlockare specifically designed for technical content. - Accessible & Themeable: Built on top of Radix UI for accessibility and styled with Tailwind CSS for easy customization.
- MDX Ready: Easily import and use any component directly in your
.mdxfiles.
- Accordions
- Alerts & Callouts
- Buttons
- Cards
- Code Blocks with syntax highlighting
- Navigation Menus
- Tabs
- and more...
We welcome contributions from the community! To get started:
- Fork the repository.
- Clone your fork to your local machine.
- Install dependencies using
pnpm install. - Run the main web app using
pnpm dev. - Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch and submit a pull request.
