fumadocs-mdx 14.0.1 → 14.0.3
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/{build-mdx-6UAK5FF5.js → build-mdx-W3233QBZ.js} +1 -1
- package/dist/bun/index.d.ts +1 -1
- package/dist/bun/index.js +8 -8
- package/dist/{chunk-ZY6UZ7NH.js → chunk-6RPNS75C.js} +1 -1
- package/dist/{chunk-7UKSZSPY.js → chunk-DKA3EWZH.js} +6 -7
- package/dist/{chunk-BEBCWQC7.js → chunk-GB4W3YCZ.js} +1 -1
- package/dist/{chunk-SLY7WXTX.js → chunk-KOPLIEVQ.js} +5 -6
- package/dist/{chunk-MTTISKQJ.js → chunk-LPX7ZO66.js} +1 -1
- package/dist/{chunk-K6HCOGOX.js → chunk-OLL7FM7W.js} +2 -2
- package/dist/{chunk-IQGEFL2B.js → chunk-Q5OSGLJL.js} +1 -1
- package/dist/{chunk-E5DJTSIM.js → chunk-S7KOJHHO.js} +4 -1
- package/dist/{chunk-6NISOLQ6.js → chunk-USWQVJWR.js} +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +1 -1
- package/dist/{core-B9ZoS6sA.d.ts → core-C3QZSdEx.d.ts} +1 -1
- package/dist/{index-BD8Woo4m.d.cts → index-DG1I0CwF.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/load-from-file-OZ5N7DXU.js +8 -0
- package/dist/next/index.cjs +10 -8
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +8 -8
- package/dist/node/loader.js +4 -4
- package/dist/plugins/index-file.d.ts +1 -1
- package/dist/plugins/index-file.js +2 -2
- package/dist/plugins/json-schema.d.ts +1 -1
- package/dist/plugins/last-modified.d.ts +5 -2
- package/dist/plugins/last-modified.js +10 -3
- package/dist/runtime/browser.d.ts +1 -1
- package/dist/runtime/dynamic.d.ts +1 -1
- package/dist/runtime/dynamic.js +5 -5
- package/dist/runtime/server.d.ts +1 -1
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +10 -10
- package/dist/webpack/mdx.d.ts +2 -2
- package/dist/webpack/mdx.js +6 -6
- package/dist/webpack/meta.d.ts +2 -2
- package/dist/webpack/meta.js +4 -4
- package/package.json +4 -6
- package/dist/bin.cjs +0 -1958
- package/dist/bin.d.cts +0 -1
- package/dist/bun/index.cjs +0 -1147
- package/dist/bun/index.d.cts +0 -25
- package/dist/config/index.cjs +0 -400
- package/dist/config/index.d.cts +0 -18
- package/dist/core-DTuP23zu.d.cts +0 -341
- package/dist/index-CNOvhtOn.d.ts +0 -8
- package/dist/index.cjs +0 -18
- package/dist/index.d.cts +0 -61
- package/dist/load-from-file-5HUQN36V.js +0 -8
- package/dist/next/index.d.cts +0 -33
- package/dist/node/loader.cjs +0 -1200
- package/dist/node/loader.d.cts +0 -5
- package/dist/plugins/index-file.cjs +0 -495
- package/dist/plugins/index-file.d.cts +0 -14
- package/dist/plugins/json-schema.cjs +0 -114
- package/dist/plugins/json-schema.d.cts +0 -31
- package/dist/plugins/last-modified.cjs +0 -110
- package/dist/plugins/last-modified.d.cts +0 -37
- package/dist/runtime/browser.cjs +0 -93
- package/dist/runtime/browser.d.cts +0 -53
- package/dist/runtime/dynamic.cjs +0 -1023
- package/dist/runtime/dynamic.d.cts +0 -27
- package/dist/runtime/server.cjs +0 -176
- package/dist/runtime/server.d.cts +0 -14
- package/dist/runtime/types.cjs +0 -18
- package/dist/runtime/types.d.cts +0 -61
- package/dist/vite/index.cjs +0 -1687
- package/dist/vite/index.d.cts +0 -44
- package/dist/webpack/mdx.cjs +0 -1124
- package/dist/webpack/mdx.d.cts +0 -20
- package/dist/webpack/meta.cjs +0 -684
- package/dist/webpack/meta.d.cts +0 -20
package/dist/bun/index.d.ts
CHANGED
package/dist/bun/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildConfig
|
|
3
|
-
} from "../chunk-ZY6UZ7NH.js";
|
|
4
|
-
import "../chunk-E5DJTSIM.js";
|
|
5
1
|
import {
|
|
6
2
|
createMdxLoader
|
|
7
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-USWQVJWR.js";
|
|
8
4
|
import {
|
|
9
5
|
createMetaLoader
|
|
10
6
|
} from "../chunk-TYJDYTKH.js";
|
|
11
7
|
import {
|
|
12
8
|
createIntegratedConfigLoader,
|
|
13
9
|
toBun
|
|
14
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-OLL7FM7W.js";
|
|
11
|
+
import {
|
|
12
|
+
buildConfig
|
|
13
|
+
} from "../chunk-6RPNS75C.js";
|
|
15
14
|
import "../chunk-4JSFLXXT.js";
|
|
16
15
|
import {
|
|
17
16
|
_Defaults,
|
|
18
17
|
createCore
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-GB4W3YCZ.js";
|
|
19
|
+
import "../chunk-S7KOJHHO.js";
|
|
21
20
|
import "../chunk-VWJKRQZR.js";
|
|
21
|
+
import "../chunk-WBIHDYMN.js";
|
|
22
22
|
|
|
23
23
|
// src/bun/index.ts
|
|
24
24
|
import { pathToFileURL } from "url";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fumaMatter
|
|
3
|
+
} from "./chunk-VWJKRQZR.js";
|
|
1
4
|
import {
|
|
2
5
|
createCodegen,
|
|
3
6
|
ident
|
|
4
7
|
} from "./chunk-WBIHDYMN.js";
|
|
5
|
-
import {
|
|
6
|
-
fumaMatter
|
|
7
|
-
} from "./chunk-VWJKRQZR.js";
|
|
8
8
|
|
|
9
9
|
// src/plugins/index-file.ts
|
|
10
10
|
import path2 from "path";
|
|
@@ -51,7 +51,9 @@ function indexFile(options = {}) {
|
|
|
51
51
|
}
|
|
52
52
|
function generateConfigs(core) {
|
|
53
53
|
const serverOptions = {};
|
|
54
|
-
const typeConfigs = [
|
|
54
|
+
const typeConfigs = [
|
|
55
|
+
'import("fumadocs-mdx/runtime/types").InternalTypeConfig'
|
|
56
|
+
];
|
|
55
57
|
const ctx = core.getPluginContext();
|
|
56
58
|
for (const plugin of core.getPlugins()) {
|
|
57
59
|
const indexFilePlugin = plugin["index-file"];
|
|
@@ -60,9 +62,6 @@ function indexFile(options = {}) {
|
|
|
60
62
|
const config2 = indexFilePlugin.generateTypeConfig?.call(ctx);
|
|
61
63
|
if (config2) typeConfigs.push(config2);
|
|
62
64
|
}
|
|
63
|
-
if (typeConfigs.length === 0) {
|
|
64
|
-
typeConfigs.push("{ DocData: {} }");
|
|
65
|
-
}
|
|
66
65
|
return {
|
|
67
66
|
serverOptions,
|
|
68
67
|
tc: typeConfigs.join(" & ")
|
|
@@ -182,7 +182,7 @@ function postprocessPlugin() {
|
|
|
182
182
|
/**
|
|
183
183
|
* extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
|
|
184
184
|
*/
|
|
185
|
-
extractedReferences
|
|
185
|
+
extractedReferences: import("fumadocs-mdx").ExtractedReference[];
|
|
186
186
|
}`;
|
|
187
187
|
return {
|
|
188
188
|
"index-file": {
|
|
@@ -38,6 +38,10 @@ function remarkPostprocess({
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
file.data["mdx-export"] ??= [];
|
|
41
|
+
file.data["mdx-export"].push({
|
|
42
|
+
name: "frontmatter",
|
|
43
|
+
value: frontmatter
|
|
44
|
+
});
|
|
41
45
|
if (extractLinkReferences) {
|
|
42
46
|
const urls = [];
|
|
43
47
|
visit(tree, "link", (node) => {
|
|
@@ -135,12 +139,7 @@ async function buildMDX(core, collection, {
|
|
|
135
139
|
if (!processor) {
|
|
136
140
|
const postprocessOptions = {
|
|
137
141
|
_format: format,
|
|
138
|
-
...collection?.postprocess
|
|
139
|
-
valueToExport: [
|
|
140
|
-
...collection?.postprocess?.valueToExport ?? [],
|
|
141
|
-
"structuredData",
|
|
142
|
-
"frontmatter"
|
|
143
|
-
]
|
|
142
|
+
...collection?.postprocess
|
|
144
143
|
};
|
|
145
144
|
processor = createProcessor({
|
|
146
145
|
outputFormat: "program",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ValidationError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GB4W3YCZ.js";
|
|
4
4
|
|
|
5
5
|
// src/loaders/adapter.ts
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
@@ -143,7 +143,7 @@ function createStandaloneConfigLoader({
|
|
|
143
143
|
return stats.mtime.getTime().toString();
|
|
144
144
|
}
|
|
145
145
|
async function newConfig() {
|
|
146
|
-
const { loadConfig } = await import("./load-from-file-
|
|
146
|
+
const { loadConfig } = await import("./load-from-file-OZ5N7DXU.js");
|
|
147
147
|
await core.init({
|
|
148
148
|
config: loadConfig(core, buildConfig)
|
|
149
149
|
});
|
|
@@ -47,7 +47,10 @@ function applyMdxPreset(options = {}) {
|
|
|
47
47
|
...v,
|
|
48
48
|
remarkStructureOptions !== false && [
|
|
49
49
|
plugins.remarkStructure,
|
|
50
|
-
|
|
50
|
+
{
|
|
51
|
+
exportAs: "structuredData",
|
|
52
|
+
...remarkStructureOptions
|
|
53
|
+
}
|
|
51
54
|
],
|
|
52
55
|
valueToExport.length > 0 && (() => {
|
|
53
56
|
return (_, file) => {
|
|
@@ -73,7 +73,7 @@ function createMdxLoader(configLoader) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
const lineOffset = isDevelopment ? countLines(matter.matter) : 0;
|
|
76
|
-
const { buildMDX } = await import("./build-mdx-
|
|
76
|
+
const { buildMDX } = await import("./build-mdx-W3233QBZ.js");
|
|
77
77
|
const compiled = await buildMDX(configLoader.core, docCollection, {
|
|
78
78
|
isDevelopment,
|
|
79
79
|
source: "\n".repeat(lineOffset) + matter.content,
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyCollection, B as BaseCollection,
|
|
1
|
+
export { A as AnyCollection, B as BaseCollection, a as CollectionSchema, f as DefaultMDXOptions, D as DocCollection, b as DocsCollection, G as GlobalConfig, g as MDXPresetOptions, M as MetaCollection, P as PostprocessOptions, h as applyMdxPreset, d as defineCollections, e as defineConfig, c as defineDocs, i as frontmatterSchema, m as metaSchema } from '../core-C3QZSdEx.js';
|
|
2
2
|
import { Processor, Transformer } from 'unified';
|
|
3
3
|
import { Root } from 'mdast';
|
|
4
4
|
import '@mdx-js/mdx';
|
package/dist/config/index.js
CHANGED
|
@@ -338,4 +338,4 @@ declare function createCore(options: CoreOptions, defaultPlugins?: PluginOption[
|
|
|
338
338
|
};
|
|
339
339
|
type Core = ReturnType<typeof createCore>;
|
|
340
340
|
|
|
341
|
-
export { type AnyCollection as A, type BaseCollection as B, type
|
|
341
|
+
export { type AnyCollection as A, type BaseCollection as B, type CoreOptions as C, type DocCollection as D, type ExtractedReference as E, toFumadocsSource as F, type GlobalConfig as G, indexFile as H, type IndexFilePluginOptions as I, type IndexFilePlugin as J, type MetaCollection as M, type PostprocessOptions as P, type ServerOptions as S, type TransformOptions as T, _Defaults as _, type CollectionSchema as a, type DocsCollection as b, defineDocs as c, defineCollections as d, defineConfig as e, type DefaultMDXOptions as f, type MDXPresetOptions as g, applyMdxPreset as h, frontmatterSchema as i, type Plugin as j, type AsyncDocCollectionEntry as k, type AsyncDocsCollectionEntry as l, metaSchema as m, type EmitEntry as n, type PluginContext as o, type CompilationContext as p, type PluginOption as q, type ServerContext as r, type EmitOptions as s, createCore as t, type Core as u, type MetaCollectionEntry as v, type DocCollectionEntry as w, type DocsCollectionEntry as x, type ServerCreate as y, server as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { p as CompilationContext, u as Core,
|
|
1
|
+
export { p as CompilationContext, u as Core, C as CoreOptions, n as EmitEntry, s as EmitOptions, E as ExtractedReference, j as Plugin, o as PluginContext, q as PluginOption, r as ServerContext, T as TransformOptions, _ as _Defaults, t as createCore } from './core-C3QZSdEx.js';
|
|
2
2
|
import { createProcessor } from '@mdx-js/mdx';
|
|
3
3
|
import { StructuredData } from 'fumadocs-core/mdx-plugins';
|
|
4
4
|
import { TOCItemType } from 'fumadocs-core/toc';
|
package/dist/next/index.cjs
CHANGED
|
@@ -91,7 +91,10 @@ function applyMdxPreset(options = {}) {
|
|
|
91
91
|
...v,
|
|
92
92
|
remarkStructureOptions !== false && [
|
|
93
93
|
plugins.remarkStructure,
|
|
94
|
-
|
|
94
|
+
{
|
|
95
|
+
exportAs: "structuredData",
|
|
96
|
+
...remarkStructureOptions
|
|
97
|
+
}
|
|
95
98
|
],
|
|
96
99
|
valueToExport.length > 0 && (() => {
|
|
97
100
|
return (_, file) => {
|
|
@@ -557,7 +560,7 @@ function postprocessPlugin() {
|
|
|
557
560
|
/**
|
|
558
561
|
* extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
|
|
559
562
|
*/
|
|
560
|
-
extractedReferences
|
|
563
|
+
extractedReferences: import("fumadocs-mdx").ExtractedReference[];
|
|
561
564
|
}`;
|
|
562
565
|
return {
|
|
563
566
|
"index-file": {
|
|
@@ -659,7 +662,9 @@ function indexFile(options = {}) {
|
|
|
659
662
|
}
|
|
660
663
|
function generateConfigs(core) {
|
|
661
664
|
const serverOptions = {};
|
|
662
|
-
const typeConfigs = [
|
|
665
|
+
const typeConfigs = [
|
|
666
|
+
'import("fumadocs-mdx/runtime/types").InternalTypeConfig'
|
|
667
|
+
];
|
|
663
668
|
const ctx = core.getPluginContext();
|
|
664
669
|
for (const plugin of core.getPlugins()) {
|
|
665
670
|
const indexFilePlugin = plugin["index-file"];
|
|
@@ -668,9 +673,6 @@ function indexFile(options = {}) {
|
|
|
668
673
|
const config2 = indexFilePlugin.generateTypeConfig?.call(ctx);
|
|
669
674
|
if (config2) typeConfigs.push(config2);
|
|
670
675
|
}
|
|
671
|
-
if (typeConfigs.length === 0) {
|
|
672
|
-
typeConfigs.push("{ DocData: {} }");
|
|
673
|
-
}
|
|
674
676
|
return {
|
|
675
677
|
serverOptions,
|
|
676
678
|
tc: typeConfigs.join(" & ")
|
|
@@ -946,7 +948,7 @@ function createMDX(createOptions = {}) {
|
|
|
946
948
|
return (nextConfig = {}) => {
|
|
947
949
|
const loaderOptions = {
|
|
948
950
|
...core.getOptions(),
|
|
949
|
-
|
|
951
|
+
absoluteCompiledConfigPath: path5.resolve(core.getCompiledConfigPath()),
|
|
950
952
|
isDev
|
|
951
953
|
};
|
|
952
954
|
const turbopack = {
|
|
@@ -1003,8 +1005,8 @@ function createMDX(createOptions = {}) {
|
|
|
1003
1005
|
},
|
|
1004
1006
|
{
|
|
1005
1007
|
test: metaLoaderGlob,
|
|
1008
|
+
enforce: "pre",
|
|
1006
1009
|
use: [
|
|
1007
|
-
options.defaultLoaders.babel,
|
|
1008
1010
|
{
|
|
1009
1011
|
loader: "fumadocs-mdx/loader-meta",
|
|
1010
1012
|
options: loaderOptions
|
package/dist/next/index.d.ts
CHANGED
package/dist/next/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-E5DJTSIM.js";
|
|
3
|
+
} from "../chunk-LPX7ZO66.js";
|
|
4
|
+
import "../chunk-6RPNS75C.js";
|
|
6
5
|
import {
|
|
7
6
|
mdxLoaderGlob,
|
|
8
7
|
metaLoaderGlob
|
|
@@ -11,12 +10,13 @@ import {
|
|
|
11
10
|
ValidationError,
|
|
12
11
|
_Defaults,
|
|
13
12
|
createCore
|
|
14
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-GB4W3YCZ.js";
|
|
14
|
+
import "../chunk-S7KOJHHO.js";
|
|
15
15
|
import {
|
|
16
16
|
indexFile
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-WBIHDYMN.js";
|
|
17
|
+
} from "../chunk-DKA3EWZH.js";
|
|
19
18
|
import "../chunk-VWJKRQZR.js";
|
|
19
|
+
import "../chunk-WBIHDYMN.js";
|
|
20
20
|
|
|
21
21
|
// src/next/index.ts
|
|
22
22
|
import * as path from "path";
|
|
@@ -31,7 +31,7 @@ function createMDX(createOptions = {}) {
|
|
|
31
31
|
return (nextConfig = {}) => {
|
|
32
32
|
const loaderOptions = {
|
|
33
33
|
...core.getOptions(),
|
|
34
|
-
|
|
34
|
+
absoluteCompiledConfigPath: path.resolve(core.getCompiledConfigPath()),
|
|
35
35
|
isDev
|
|
36
36
|
};
|
|
37
37
|
const turbopack = {
|
|
@@ -88,8 +88,8 @@ function createMDX(createOptions = {}) {
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
test: metaLoaderGlob,
|
|
91
|
+
enforce: "pre",
|
|
91
92
|
use: [
|
|
92
|
-
options.defaultLoaders.babel,
|
|
93
93
|
{
|
|
94
94
|
loader: "fumadocs-mdx/loader-meta",
|
|
95
95
|
options: loaderOptions
|
package/dist/node/loader.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createMdxLoader
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-USWQVJWR.js";
|
|
4
4
|
import {
|
|
5
5
|
createMetaLoader
|
|
6
6
|
} from "../chunk-TYJDYTKH.js";
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toNode
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-OLL7FM7W.js";
|
|
11
11
|
import "../chunk-4JSFLXXT.js";
|
|
12
12
|
import {
|
|
13
13
|
_Defaults,
|
|
14
14
|
createCore
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-WBIHDYMN.js";
|
|
15
|
+
} from "../chunk-GB4W3YCZ.js";
|
|
17
16
|
import "../chunk-VWJKRQZR.js";
|
|
17
|
+
import "../chunk-WBIHDYMN.js";
|
|
18
18
|
|
|
19
19
|
// src/node/loader.ts
|
|
20
20
|
var core = createCore({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { J as IndexFilePlugin, I as IndexFilePluginOptions, H as default } from '../core-
|
|
1
|
+
export { J as IndexFilePlugin, I as IndexFilePluginOptions, H as default } from '../core-C3QZSdEx.js';
|
|
2
2
|
import '@mdx-js/mdx';
|
|
3
3
|
import '@standard-schema/spec';
|
|
4
4
|
import 'unified';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as Plugin } from '../core-
|
|
1
|
+
import { j as Plugin } from '../core-C3QZSdEx.js';
|
|
2
2
|
import '@mdx-js/mdx';
|
|
3
3
|
import '@standard-schema/spec';
|
|
4
4
|
import 'unified';
|
|
@@ -13,6 +13,7 @@ import 'fumadocs-core/toc';
|
|
|
13
13
|
import 'mdast';
|
|
14
14
|
import 'mdx/types';
|
|
15
15
|
|
|
16
|
+
type VersionControlFn = (filePath: string) => Promise<Date | undefined>;
|
|
16
17
|
interface LastModifiedPluginOptions {
|
|
17
18
|
/**
|
|
18
19
|
* Version control to obtain the last modified time.
|
|
@@ -21,9 +22,11 @@ interface LastModifiedPluginOptions {
|
|
|
21
22
|
*
|
|
22
23
|
* If you are using Vercel, please set `VERCEL_DEEP_CLONE` environment variable to `true`.
|
|
23
24
|
*
|
|
25
|
+
* - A function: return the last modified time for given file path.
|
|
26
|
+
*
|
|
24
27
|
* @defaultValue 'git'
|
|
25
28
|
*/
|
|
26
|
-
versionControl?: 'git';
|
|
29
|
+
versionControl?: 'git' | VersionControlFn;
|
|
27
30
|
/**
|
|
28
31
|
* Filter the collections to include by names
|
|
29
32
|
*/
|
|
@@ -15,6 +15,14 @@ var ExtendTypes = `{
|
|
|
15
15
|
}`;
|
|
16
16
|
function lastModified(options = {}) {
|
|
17
17
|
const { versionControl = "git", filter = () => true } = options;
|
|
18
|
+
let fn;
|
|
19
|
+
switch (versionControl) {
|
|
20
|
+
case "git":
|
|
21
|
+
fn = getGitTimestamp;
|
|
22
|
+
break;
|
|
23
|
+
default:
|
|
24
|
+
fn = versionControl;
|
|
25
|
+
}
|
|
18
26
|
return {
|
|
19
27
|
name: "last-modified",
|
|
20
28
|
"index-file": {
|
|
@@ -40,9 +48,8 @@ function lastModified(options = {}) {
|
|
|
40
48
|
doc: {
|
|
41
49
|
async vfile(file) {
|
|
42
50
|
if (!filter(this.collection.name)) return;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (timestamp === void 0) return;
|
|
51
|
+
const timestamp = await fn(this.filePath);
|
|
52
|
+
if (timestamp !== void 0) {
|
|
46
53
|
file.data["mdx-export"] ??= [];
|
|
47
54
|
file.data["mdx-export"].push({
|
|
48
55
|
name: "lastModified",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, FC } from 'react';
|
|
2
2
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
3
|
-
import { D as DocCollection,
|
|
3
|
+
import { D as DocCollection, b as DocsCollection } from '../core-C3QZSdEx.js';
|
|
4
4
|
import { CompiledMDXProperties } from '../index.js';
|
|
5
5
|
import { InternalTypeConfig } from './types.js';
|
|
6
6
|
import '@mdx-js/mdx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as fumadocs_core_source from 'fumadocs-core/source';
|
|
2
|
-
import {
|
|
2
|
+
import { C as CoreOptions, S as ServerOptions, D as DocCollection, b as DocsCollection, k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry } from '../core-C3QZSdEx.js';
|
|
3
3
|
import * as _standard_schema_spec from '@standard-schema/spec';
|
|
4
4
|
import { FileInfo, InternalTypeConfig } from './types.js';
|
|
5
5
|
import '@mdx-js/mdx';
|
package/dist/runtime/dynamic.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildMDX
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KOPLIEVQ.js";
|
|
4
4
|
import {
|
|
5
5
|
server
|
|
6
6
|
} from "../chunk-5OBUOALK.js";
|
|
7
7
|
import "../chunk-FBLMK4RS.js";
|
|
8
8
|
import {
|
|
9
9
|
buildConfig
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-E5DJTSIM.js";
|
|
10
|
+
} from "../chunk-6RPNS75C.js";
|
|
12
11
|
import {
|
|
13
12
|
createCore
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-GB4W3YCZ.js";
|
|
14
|
+
import "../chunk-S7KOJHHO.js";
|
|
16
15
|
import {
|
|
17
16
|
fumaMatter
|
|
18
17
|
} from "../chunk-VWJKRQZR.js";
|
|
18
|
+
import "../chunk-WBIHDYMN.js";
|
|
19
19
|
|
|
20
20
|
// src/runtime/dynamic.ts
|
|
21
21
|
import { executeMdx } from "@fumadocs/mdx-remote/client";
|
package/dist/runtime/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'fumadocs-core/source';
|
|
2
|
-
export { k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry, w as DocCollectionEntry, x as DocsCollectionEntry, v as MetaCollectionEntry, y as ServerCreate, S as ServerOptions, z as server, F as toFumadocsSource } from '../core-
|
|
2
|
+
export { k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry, w as DocCollectionEntry, x as DocsCollectionEntry, v as MetaCollectionEntry, y as ServerCreate, S as ServerOptions, z as server, F as toFumadocsSource } from '../core-C3QZSdEx.js';
|
|
3
3
|
import '@standard-schema/spec';
|
|
4
4
|
import './types.js';
|
|
5
5
|
import '@mdx-js/mdx';
|
package/dist/vite/index.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildConfig
|
|
3
|
-
} from "../chunk-ZY6UZ7NH.js";
|
|
4
|
-
import "../chunk-E5DJTSIM.js";
|
|
5
1
|
import {
|
|
6
2
|
createMdxLoader
|
|
7
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-USWQVJWR.js";
|
|
8
4
|
import {
|
|
9
5
|
createMetaLoader
|
|
10
6
|
} from "../chunk-TYJDYTKH.js";
|
|
11
7
|
import {
|
|
12
8
|
createIntegratedConfigLoader,
|
|
13
9
|
toVite
|
|
14
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-OLL7FM7W.js";
|
|
11
|
+
import {
|
|
12
|
+
buildConfig
|
|
13
|
+
} from "../chunk-6RPNS75C.js";
|
|
15
14
|
import "../chunk-4JSFLXXT.js";
|
|
16
15
|
import {
|
|
17
16
|
ValidationError,
|
|
18
17
|
_Defaults,
|
|
19
18
|
createCore
|
|
20
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-GB4W3YCZ.js";
|
|
20
|
+
import "../chunk-S7KOJHHO.js";
|
|
21
21
|
import {
|
|
22
22
|
indexFile
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-WBIHDYMN.js";
|
|
23
|
+
} from "../chunk-DKA3EWZH.js";
|
|
25
24
|
import "../chunk-VWJKRQZR.js";
|
|
25
|
+
import "../chunk-WBIHDYMN.js";
|
|
26
26
|
|
|
27
27
|
// src/vite/index.ts
|
|
28
28
|
import { mergeConfig } from "vite";
|
|
@@ -83,7 +83,7 @@ async function mdx(config, pluginOptions = {}) {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
async function postInstall(pluginOptions = {}) {
|
|
86
|
-
const { loadConfig } = await import("../load-from-file-
|
|
86
|
+
const { loadConfig } = await import("../load-from-file-OZ5N7DXU.js");
|
|
87
87
|
const core = createViteCore(applyDefaults(pluginOptions));
|
|
88
88
|
await core.init({
|
|
89
89
|
config: loadConfig(core, true)
|
package/dist/webpack/mdx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoaderContext } from 'webpack';
|
|
2
|
-
import { W as WebpackLoaderOptions } from '../index-
|
|
3
|
-
import '../core-
|
|
2
|
+
import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
|
|
3
|
+
import '../core-C3QZSdEx.js';
|
|
4
4
|
import '@mdx-js/mdx';
|
|
5
5
|
import '@standard-schema/spec';
|
|
6
6
|
import 'unified';
|
package/dist/webpack/mdx.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Q5OSGLJL.js";
|
|
4
4
|
import {
|
|
5
5
|
createMdxLoader
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-USWQVJWR.js";
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toWebpack
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-OLL7FM7W.js";
|
|
11
11
|
import "../chunk-4JSFLXXT.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-WBIHDYMN.js";
|
|
12
|
+
import "../chunk-GB4W3YCZ.js";
|
|
14
13
|
import "../chunk-VWJKRQZR.js";
|
|
14
|
+
import "../chunk-WBIHDYMN.js";
|
|
15
15
|
|
|
16
16
|
// src/webpack/mdx.ts
|
|
17
17
|
var instance;
|
|
18
18
|
async function loader(source, callback) {
|
|
19
19
|
const options = this.getOptions();
|
|
20
20
|
this.cacheable(true);
|
|
21
|
-
this.addDependency(options.
|
|
21
|
+
this.addDependency(options.absoluteCompiledConfigPath);
|
|
22
22
|
if (!instance) {
|
|
23
23
|
instance = toWebpack(
|
|
24
24
|
createMdxLoader(
|
package/dist/webpack/meta.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoaderContext } from 'webpack';
|
|
2
|
-
import { W as WebpackLoaderOptions } from '../index-
|
|
3
|
-
import '../core-
|
|
2
|
+
import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
|
|
3
|
+
import '../core-C3QZSdEx.js';
|
|
4
4
|
import '@mdx-js/mdx';
|
|
5
5
|
import '@standard-schema/spec';
|
|
6
6
|
import 'unified';
|