Getting Started
Welcome to DocuNext — a documentation platform built on Next.js.
What’s Included
- MDX support with GitHub-flavored markdown
- Sidebar navigation and mobile drawer
- Automatic table of contents (right summary)
- Client-side search
- Previous/Next navigation at the bottom of docs
- Dark mode toggle (class-based)
- Accent color tokens for consistent styling
Start the Dev Server
npm install
npm run dev
Open http://localhost:3000/docs/getting-started.
Add a Doc Page
- Create a file under
src/content/docs/, for examplesrc/content/docs/tutorial.mdx. - Add it to the order by editing
docsItemsinsrc/components/site/Sidebar.tsx. - Visit
/docs/tutorial.
Example content:
---
title: Tutorial
description: Learn by building
---
Write content in MDX. Use headings (`##`) to show in the Table of Contents.
<SandpackPreview />
Routing
- Docs route:
/docs/[...slug] - Files are flat under
src/content/docs/. Nesting is supported by folders. - Static params are generated from available files.
Navigation
- Previous/Next links appear at the bottom of each doc based on
docsItems. - Change the order by editing
docsItemsinsrc/components/site/Sidebar.tsx.
Dark Mode and Accent
- Toggle theme in the navbar.
- Customize colors in
src/app/globals.cssvia--accentand--accent-soft.