Skip to Content
快速开始

快速开始

启动开发服务器

pnpm install pnpm dev

打开 http://localhost:3000  查看文档站点。

添加页面

content/ 目录中新建 .md.mdx 文件:

content/ ├── index.mdx ├── getting-started.mdx └── guides/ └── configuration.mdx

调整导航

使用同一目录下的 _meta.js 控制页面顺序与显示名称:

_meta.js
export default { index: '介绍', 'getting-started': '快速开始', guides: '使用指南' }

构建生产版本

pnpm build pnpm start

构建完成后,Pagefind 会自动生成全文搜索索引。

Last updated on