This is a Next.js application generated with Create Fumadocs.
Install these system dependencies before you start:
- Git, for cloning the repository.
- Node.js 20.9.0 or newer. Next.js 16 requires this minimum Node version.
- Corepack, which ships with recent Node.js releases and manages
pnpm.
This project uses pnpm and the committed pnpm-lock.yaml file. From a fresh
checkout:
git clone <repo-url>
cd docs
corepack enable
corepack prepare pnpm@10.18.3 --activate
pnpm install --frozen-lockfilepnpm install runs the postinstall script, which generates the Fumadocs MDX
source files under .source. No .env file, database, or external service is
required for local development.
The package dependencies installed by pnpm are:
- Next.js, React, and React DOM for the application runtime.
- Fumadocs Core, Fumadocs MDX, and Fumadocs UI for the documentation system.
- Tailwind CSS,
@tailwindcss/postcss, PostCSS, andtailwind-mergefor styling. - TypeScript and the React/Node/MDX type packages for type checking.
- ESLint and
eslint-config-nextfor linting. lucide-reactfor icons.
Run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
Before opening a pull request, run the local checks:
pnpm lint
pnpm types:check
pnpm buildUseful scripts:
pnpm dev: start the Next.js development server.pnpm build: build the production site.pnpm start: serve a production build locally.pnpm lint: run ESLint.pnpm types:check: regenerate Fumadocs/Next types and run TypeScript.
In the project, you can see:
lib/source.ts: Code for content source adapter,loader()provides the interface to access your content.lib/layout.shared.tsx: Shared options for layouts, optional but preferred to keep.
| Route | Description |
|---|---|
app/(home) |
The route group for your landing page and other pages. |
app/docs |
The documentation layout and pages. |
app/api/search/route.ts |
The Route Handler for search. |
A source.config.ts config file has been included, you can customise different options like frontmatter schema.
Read the Introduction for further details.
To learn more about Next.js and Fumadocs, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Fumadocs - learn about Fumadocs