Nextra is a site generation framework on top of Next.js with MDX, themes, and conventions geared toward docs, blogs, and static sites.
Overview
Nextra layers content workflows on Next.js so teams can build documentation sites, blogs, and other static web properties from Markdown and MDX. It advertises file-system routing, theme packages for docs and blogs, built-in search, and integrations with the same rendering features Next.js provides.
Authors write MDX pages with optional React components, syntax highlighting through Shiki, internationalized folders per locale, and helpers that map Markdown links and images to Next.js Link and Image. Search indexes content at build time via Pagefind, and the stack supports hybrid rendering with server components, client components, and incremental static regeneration where Next.js allows.
Shipped themes include a documentation layout with navbar, footer, callouts, tabs, and API-oriented utilities, plus a blog theme with tagging and RSS routes. Teams can implement custom themes while reusing Nextra’s configuration and MDX pipeline.
Typical use starts by installing Nextra into a Next.js app, configuring content directories and theme settings, then building or exporting the site through normal Next.js deploy paths rather than running a separate hosted product.
Key features
- Next.js and MDX integration
- Docs and blog themes
- Build-time full-text search
- Shiki syntax highlighting
- Locale-based content folders
- Built-in MDX layout components
- Static export support
- Custom theme hooks
Use cases
- Product documentation sites
- Technical blogs
- Multi-language doc sets
- MDX-rich marketing pages