fumadocs-mdx 9.0.3 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.mjs +5 -0
- package/dist/chunk-EKBKQCSU.mjs +137 -0
- package/dist/chunk-LRV535YP.mjs +161 -0
- package/dist/config/index.d.mts +171 -0
- package/dist/config/index.mjs +16 -0
- package/dist/index.d.mts +20 -93
- package/dist/index.mjs +49 -87
- package/dist/loader-mdx.d.mts +13 -13
- package/dist/loader-mdx.mjs +167 -44
- package/dist/next/index.d.mts +13 -0
- package/dist/next/index.mjs +239 -0
- package/package.json +20 -9
- package/dist/config.d.mts +0 -44
- package/dist/config.mjs +0 -260
- package/dist/loader.d.mts +0 -18
- package/dist/loader.mjs +0 -36
- package/dist/search-index-plugin-DG9nZ1CX.d.mts +0 -40
- package/loader.js +0 -8
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
2
|
-
|
|
3
|
-
interface SearchIndex {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
url: string;
|
|
8
|
-
structuredData: StructuredData;
|
|
9
|
-
/**
|
|
10
|
-
* VFile Data
|
|
11
|
-
*/
|
|
12
|
-
_data: {
|
|
13
|
-
frontmatter: Record<string, unknown>;
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
interface Options {
|
|
18
|
-
rootContentDir: string;
|
|
19
|
-
rootMapFile: string;
|
|
20
|
-
/**
|
|
21
|
-
* Only build search indexes in production builds
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue true
|
|
24
|
-
*/
|
|
25
|
-
productionOnly?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @param path - MDX file path relative to root content dir
|
|
28
|
-
* @returns page URL
|
|
29
|
-
*/
|
|
30
|
-
getUrl?: (path: string) => string;
|
|
31
|
-
/**
|
|
32
|
-
* Filter MDX files with specific path
|
|
33
|
-
*
|
|
34
|
-
* @param path - MDX file path relative to root content dir
|
|
35
|
-
* @returns whether should include this item in search indexes
|
|
36
|
-
*/
|
|
37
|
-
filter?: (path: string) => boolean;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type { Options as O, SearchIndex as S };
|