Welcome to your new documentation site! This guide will help you get up and running with Nextra 4.0.
Nextra is a static site generator built on top of Next.js. It allows you to create documentation sites using Markdown and MDX (Markdown with JSX components).
Your Nextra project has the following structure:
βββ app/
β βββ layout.tsx # App layout with theme
β βββ page.mdx # Homepage
β βββ getting-started/
β β βββ page.mdx # This page
β βββ api/
β βββ page.mdx # API docs
βββ mdx-components.tsx # MDX components configuration
βββ next.config.ts # Nextra configuration
βββ package.json
All your documentation content goes in the app directory as .mdx files:
page.mdx files for your contentYou can include React components in your MDX files:
import { Callout } from 'nextra/components'
<Callout type="info" emoji="βΉοΈ">
This is an info callout!
</Callout>
This is an info callout built with Nextra 4.0!
Edit app/layout.tsx to customize your siteβs appearance, navigation, and metadata.
Run the development server:
npm run dev
Your site will be available at http://localhost:3000.