Next.jsReact文档

next-app-nextra-template — Next.js 文档模板

作者 gfazioli

基于 Next.js App Router、Mantine 与 Nextra 的文档站点模板,附带 Storybook、Jest、Pagefind 搜索等开发工具链配置。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Next.js App Router 与 Nextra 文档站点共存于同一项目

02

Mantine 组件库与 Nextra 文档之间同步深色模式

03

content 目录使用 .mdx 与 _meta.ts 组织文档内容

04

内置 Pagefind 服务端搜索索引,构建时生成

05

提供 Storybook、Jest 与 React Testing Library 开发测试配置

06

集成 GitHub Release Notes API,可在文档中展示发布信息

模板详细介绍

该模板把 Next.js App Router 应用与 Nextra 文档站点放在同一个项目里,UI 层使用 Mantine 组件库,并通过主题同步让文档与应用共享深色模式。仓库结构按职责划分:app 目录存放 App Router 页面、布局与 API 路由,components 存放文档和应用共用的组件,content 存放 Nextra 的 .mdx 与 _meta.ts 内容文件,config 集中管理站点元数据、GitHub API 与搜索配置。

文档侧提供可替换的导航与页脚组件,并集成 GitHub Release Notes 接口,可在文档中展示版本发布信息。构建流程内置 Pagefind 生成服务端搜索索引,同时提供 Storybook 组件开发环境、Jest 与 React Testing Library 测试配置,以及 oxlint、oxfmt、Stylelint、TypeScript 类型检查等脚本。

模板面向的是需要同时维护产品应用与配套文档的开发者,适合作为起点自行替换内容与配置。仓库未提供业务数据层、认证或部署方案,实际使用需按自身需求补充。

Next.jsReact文档

适合你的项目吗?

适用场景

  • 为已有 Next.js 应用搭建配套的文档站点
  • 需要一个同时包含应用页面与 MDX 文档的单仓库结构
  • 希望文档与应用共用同一套 Mantine 组件与主题
  • 需要在文档中展示 GitHub 仓库的版本发布记录

适合人群

  • 使用 Next.js App Router 的前端项目团队
  • 需要维护产品文档与示例页面的开发者
  • 偏好 Mantine 组件库并希望统一文档样式的前端工程师

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    仓库采用 MIT 许可,分发代码时需保留版权与许可声明

  2. 2

    演示图片、字体、图标等第三方素材需单独核对其许可

  3. 3

    域名、托管、数据库或 AI 等外部服务可能另行收费

  4. 4

    README 中的赞助与推广内容不影响模板本身的使用

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • README 中的赞助请求为自愿性质,不构成使用限制;模板代码本身可免费使用。
  • 文档中的 GitHub Release Notes 展示功能依赖 GitHub API,可能需要网络访问及相应 API 配额。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 92 / 100
技术栈
Next.js · React
网站类型
文档
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-10-02
截图检查日期
2026-10-02

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Next.js。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: ca0b0bb55668369ee8831397f999e9b71b5310c65fc16082e55c68eb240adbe3

2026-10-02T16:40:22.585Z

来源文件 / 仓库
# Mantine Next.js + Nextra template

<img width="1536" height="2044" alt="image" src="https://github.com/user-attachments/assets/008eb9b9-ba86-42b6-a5c6-72db3c21bc61" />


<div align="center">

[<kbd> <br/> ❤️ If this component has been useful to you or your team, please consider becoming a sponsor <br/> </kbd>](https://github.com/sponsors/gfazioli?o=esc)

</div>

This is a template for [Next.js](https://nextjs.org/) app router + [Mantine](https://mantine.dev/) + [Nextra](https://nextra.site/) documentation site.

## Features

This template comes with the following features:

- [Next.js 16](https://nextjs.org/) with App Router and Turbopack
- [Mantine 9](https://mantine.dev/) UI component library
- [Nextra 4](https://nextra.site/) documentation framework with Mantine theme sync
- [PostCSS](https://postcss.org/) with [mantine-postcss-preset](https://mantine.dev/styles/postcss-preset)
- [TypeScript 6](https://www.typescriptlang.org/)
- [Storybook](https://storybook.js.org/)
- [Jest](https://jestjs.io/) setup with [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
- [oxlint](https://oxc.rs/docs/guide/usage/linter) for linting
- [oxfmt](https://oxc.rs/docs/guide/usage/formatter) for formatting
- [Pagefind](https://pagefind.app/) server-side search API
- Turbopack inline SVG loader [turbopack-inline-svg-loader](https://github.com/vitalets/turbopack-inline-svg-loader)

## Nextra Features

- [Nextra](https://nextra.site/) documentation site with Mantine theme
- Sync Dark mode between documentation and application (Mantine/Nextra)
- Customizable components in `components` folder
- Custom Navigation and Footer components for Nextra documentation site
- GitHub Release Notes integration via API

## Folder structure

- `app` – Next.js App Router pages, layouts, and API routes
- `components` – shared components (usable in both documentation and application)
- `content` – Nextra documentation site (`.mdx` and `_meta.ts` files)
- `config` – centralized site configuration (metadata, GitHub API, search)

## npm scripts

### Build and dev scripts

- `dev` – start dev server
- `build` – bundle application for production (includes pagefind search index)
- `analyze` – analyzes application bundle with [@next/bundle-analyzer](https://www.npmjs.com/package/@next/bundle-analyzer)

### Testing scripts

- `typecheck` – checks TypeScript types
- `lint` – runs oxlint and Stylelint
- `format:test` – checks files with oxfmt
- `jest` – runs jest tests
- `jest:watch` – starts jest watch
- `test` – runs `format:test`, `lint`, `typecheck` and `jest` scripts

### Other scripts

- `storybook` – starts storybook dev server
- `storybook:build` – build production storybook bundle to `storybook-static`
- `format:write` – formats all files with oxfmt

## Sponsor

<div align="center">

[<kbd> <br/> ❤️ If this component has been useful to you or your team, please consider becoming a sponsor <br/> </kbd>](https://github.com/sponsors/gfazioli?o=esc)

</div>

Your support helps me:

- Keep the project actively maintained with timely bug fixes and security updates
- Add new features, improve performance, and refine the developer experience
- Expand test coverage and documentation for smoother adoption
- Ensure long‑term sustainability without relying on ad hoc free time
- Prioritize community requests and roadmap items that matter most

Open source thrives when those who benefit can give back—even a small monthly contribution makes a real difference. Sponsorships help cover maintenance time, infrastructure, and the countless invisible tasks that keep a project healthy.

Your help truly matters.

💚 [Become a sponsor](https://github.com/sponsors/gfazioli?o=esc) today and help me keep this project reliable, up‑to‑date, and growing for everyone.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。