fumadocs-content
星标2
分支1
更新时间2026年5月17日 01:09
Use when creating, organizing, or updating MDX documentation content in the Fumadocs-based docs system
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when creating, organizing, or updating MDX documentation content in the Fumadocs-based docs system
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when configuring, updating, or debugging the Algolia/Pinecone search indexing pipeline for documentation
Use when building, modifying, or debugging quiz functionality with state management, timer, pagination, and results
| name | fumadocs-content |
| description | Use when creating, organizing, or updating MDX documentation content in the Fumadocs-based docs system |
Manage MDX documentation content with Fumadocs frontmatter, source configuration, and content organization.
MDX files live in .source/ directory. Reference via @/.source alias.
// source.config.ts - content source definition
import { defineSource } from 'fumadocs-mdx';
export const source = defineSource({
// MDX files glob pattern
glob: '**/*.mdx',
// Content directory
root: '.source',
});
---
title: Page Title
description: SEO description
indexing:
- { category: grammar }
- { category: vocabulary }
weight: 1
---
.source/<section>/<page>.mdxmdx-components.tsx)npm run dev to verifyimport { source } from '@/source.config';
// Get all docs for navigation
const docs = await source.getMany();
// Filter by category for section nav
const grammarDocs = docs.filter(doc =>
doc.indexing?.some(i => i.category === 'grammar')
);
import { Callout } from '@/components/ui/alert';
<Callout type="info">
Important note for learners
</Callout>
@/.source alias for imports| Task | File |
|---|---|
| Add doc | .source/<name>.mdx |
| Configure source | source.config.ts |
| Custom components | mdx-components.tsx |
| Site config | site.config.ts |