fumadocs-mdx 9.0.4 → 10.0.1

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.
@@ -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 };
package/loader.js DELETED
@@ -1,8 +0,0 @@
1
- /* eslint-env node -- Node.js env */
2
-
3
- module.exports = function loader(code) {
4
- const callback = this.async();
5
- import('./dist/loader.mjs').then((mod) =>
6
- mod.default.call(this, code, callback),
7
- );
8
- };