A fresh, reusable docs starter built from scratch to replace the previous GitBook-based setup.
- Next.js App Router
- Tailwind CSS + Typography plugin
- Markdown docs via gray-matter + react-markdown
npm install
npm run devOpen http://localhost:3000/docs.
- Create markdown files in
content/docs. - Add frontmatter fields:
titledescriptionsectionorderupdated
- Use headings (
##and###) to auto-generate the table of contents.
src/app/docs/[[...slug]]/page.tsx: Docs page renderersrc/lib/docs.ts: Markdown loader + nav + toc logicsrc/components/docs: Reusable docs shell componentscontent/docs: Markdown content source
- Colors and page atmosphere:
src/app/globals.css - Tailwind tokens and typography:
tailwind.config.ts - Brand topbar and nav shell:
src/components/docs