Fumadocs

动态输入

通过按需编译访问你的收藏。

使用

🌐 Usage

在文档/文档集合上启用动态模式,并从dynamic条目导入,而不是server

🌐 Enable dynamic mode on docs/doc collections, and import it from dynamic entry instead of server.

它提供与 server 条目相同的输出,而编译后的属性必须通过 load() 方法加载。

🌐 It offers the same output as server entry, while compiled properties have to be loaded via load() method.

import { docs } from 'fumadocs-mdx:collections/dynamic';
import { loader } from 'fumadocs-core/source';

export const source = loader({
  baseUrl: '/docs',
  source: docs.toFumadocsSource(),
});

Last updated on

On this page