fumadocs-mdx 11.1.0 → 11.1.2
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/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-
|
|
2
|
-
export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-
|
|
1
|
+
import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-BOXkLY5B.js';
|
|
2
|
+
export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-BOXkLY5B.js';
|
|
3
3
|
import { z, ZodTypeAny } from 'zod';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
5
|
import 'mdx/types';
|
|
@@ -133,7 +133,7 @@ declare function defineDocs<DocData extends ZodTypeAny = typeof frontmatterSchem
|
|
|
133
133
|
/**
|
|
134
134
|
* The directory to scan files
|
|
135
135
|
*
|
|
136
|
-
* @defaultValue '
|
|
136
|
+
* @defaultValue 'content/docs'
|
|
137
137
|
*/
|
|
138
138
|
dir?: string | string[];
|
|
139
139
|
docs?: Partial<DocCollection<DocData, DocAsync, DocOut>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
2
|
-
import { F as FileInfo, B as BaseCollectionEntry } from './types-
|
|
2
|
+
import { F as FileInfo, B as BaseCollectionEntry } from './types-BOXkLY5B.js';
|
|
3
3
|
import { MetaFile } from './loader-mdx.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'mdx/types';
|
package/dist/next/index.js
CHANGED
|
@@ -71,7 +71,7 @@ async function getCollectionFiles(collection) {
|
|
|
71
71
|
await Promise.all(
|
|
72
72
|
dirs.map(async (dir) => {
|
|
73
73
|
const result = await fg(collection.files ?? "**/*", {
|
|
74
|
-
cwd: dir,
|
|
74
|
+
cwd: path.resolve(dir),
|
|
75
75
|
absolute: true
|
|
76
76
|
});
|
|
77
77
|
result.forEach((item) => {
|
|
@@ -148,7 +148,7 @@ async function start(dev, configPath, outDir2) {
|
|
|
148
148
|
const { watcher } = await import("../watcher-7ALL6XOY.js");
|
|
149
149
|
const instance = watcher(configPath, config);
|
|
150
150
|
instance.on("ready", () => {
|
|
151
|
-
|
|
151
|
+
console.log("[MDX] started dev server");
|
|
152
152
|
});
|
|
153
153
|
instance.on("all", (event, file) => {
|
|
154
154
|
const onUpdate = async () => {
|
|
@@ -16,7 +16,7 @@ type DefaultMDXOptions = Omit<NonNullable<ProcessorOptions>, 'rehypePlugins' | '
|
|
|
16
16
|
remarkStructureOptions?: StructureOptions | false;
|
|
17
17
|
remarkHeadingOptions?: RemarkHeadingOptions;
|
|
18
18
|
remarkImageOptions?: RemarkImageOptions | false;
|
|
19
|
-
rehypeCodeOptions?: RehypeCodeOptions | false;
|
|
19
|
+
rehypeCodeOptions?: Partial<RehypeCodeOptions> | false;
|
|
20
20
|
};
|
|
21
21
|
declare function getDefaultMDXOptions({ valueToExport, rehypeCodeOptions, remarkImageOptions, remarkHeadingOptions, remarkStructureOptions, ...mdxOptions }: DefaultMDXOptions): ProcessorOptions;
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.2",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@mdx-js/mdx": "^3.1.0",
|
|
39
39
|
"chokidar": "^4.0.1",
|
|
40
|
-
"cross-spawn": "^7.0.
|
|
40
|
+
"cross-spawn": "^7.0.5",
|
|
41
41
|
"esbuild": "^0.24.0",
|
|
42
|
-
"estree-util-value-to-estree": "^3.1
|
|
42
|
+
"estree-util-value-to-estree": "^3.2.1",
|
|
43
43
|
"fast-glob": "^3.3.1",
|
|
44
44
|
"gray-matter": "^4.0.3",
|
|
45
45
|
"micromatch": "^4.0.8",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@types/mdast": "^4.0.3",
|
|
51
51
|
"@types/mdx": "^2.0.13",
|
|
52
52
|
"@types/micromatch": "^4.0.9",
|
|
53
|
-
"@types/react": "^18.3.
|
|
54
|
-
"next": "^15.0.
|
|
53
|
+
"@types/react": "^18.3.12",
|
|
54
|
+
"next": "^15.0.3",
|
|
55
55
|
"unified": "^11.0.5",
|
|
56
56
|
"vfile": "^6.0.3",
|
|
57
|
-
"webpack": "^5.
|
|
58
|
-
"
|
|
57
|
+
"webpack": "^5.96.1",
|
|
58
|
+
"eslint-config-custom": "0.0.0",
|
|
59
59
|
"tsconfig": "0.0.0",
|
|
60
|
-
"
|
|
60
|
+
"fumadocs-core": "14.5.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"fumadocs-core": "^14.0.0",
|