fumadocs-core 14.6.8 → 14.7.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.
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
// src/mdx-plugins/rehype-code.ts
|
|
21
21
|
import rehypeShikiFromHighlighter from "@shikijs/rehype/core";
|
|
22
22
|
|
|
23
|
-
// ../../node_modules/.pnpm/shiki-transformers@1.0.1_shiki@1.
|
|
23
|
+
// ../../node_modules/.pnpm/shiki-transformers@1.0.1_shiki@1.26.1/node_modules/shiki-transformers/dist/index.js
|
|
24
24
|
var matchers = [
|
|
25
25
|
[/^(<!--)(.+)(-->)$/, false],
|
|
26
26
|
[/^(\/\*)(.+)(\*\/)$/, false],
|
package/dist/source/index.d.ts
CHANGED
|
@@ -59,13 +59,11 @@ interface SourceConfig {
|
|
|
59
59
|
}
|
|
60
60
|
interface LoaderOptions {
|
|
61
61
|
/**
|
|
62
|
+
* @deprecated It is now recommended to filter files on `source` level
|
|
62
63
|
* @defaultValue `''`
|
|
63
64
|
*/
|
|
64
65
|
rootDir?: string;
|
|
65
|
-
|
|
66
|
-
* @defaultValue `'/'`
|
|
67
|
-
*/
|
|
68
|
-
baseUrl?: string;
|
|
66
|
+
baseUrl: string;
|
|
69
67
|
icon?: NonNullable<BuildPageTreeOptions['resolveIcon']>;
|
|
70
68
|
slugs?: LoadOptions['getSlugs'];
|
|
71
69
|
url?: UrlFn;
|
package/dist/source/index.js
CHANGED
|
@@ -375,13 +375,11 @@ function loader(options) {
|
|
|
375
375
|
return createOutput(options);
|
|
376
376
|
}
|
|
377
377
|
function createOutput(options) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
url: getUrl = createGetUrl(baseUrl, options.i18n)
|
|
384
|
-
} = options;
|
|
378
|
+
if (!options.url && !options.baseUrl) {
|
|
379
|
+
console.warn("`loader()` now requires a `baseUrl` option to be defined.");
|
|
380
|
+
}
|
|
381
|
+
const { source, rootDir = "", slugs: slugsFn = getSlugs } = options;
|
|
382
|
+
const getUrl = options.url ?? createGetUrl(options.baseUrl ?? "/", options.i18n);
|
|
385
383
|
const storage = loadFiles(
|
|
386
384
|
typeof source.files === "function" ? source.files(rootDir) : source.files,
|
|
387
385
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.0",
|
|
4
4
|
"description": "The library for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
"dist/*"
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@formatjs/intl-localematcher": "^0.5.
|
|
80
|
+
"@formatjs/intl-localematcher": "^0.5.10",
|
|
81
81
|
"@orama/orama": "^2.1.1",
|
|
82
|
-
"@shikijs/rehype": "^1.
|
|
82
|
+
"@shikijs/rehype": "^1.26.1",
|
|
83
83
|
"github-slugger": "^2.0.0",
|
|
84
84
|
"hast-util-to-estree": "^3.1.0",
|
|
85
85
|
"hast-util-to-jsx-runtime": "^2.3.2",
|
|
86
|
-
"image-size": "^1.
|
|
86
|
+
"image-size": "^1.2.0",
|
|
87
87
|
"negotiator": "^1.0.0",
|
|
88
88
|
"react-remove-scroll": "^2.6.2",
|
|
89
89
|
"remark": "^15.0.0",
|
|
90
90
|
"remark-gfm": "^4.0.0",
|
|
91
91
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
92
|
-
"shiki": "^1.
|
|
92
|
+
"shiki": "^1.26.1",
|
|
93
93
|
"unist-util-visit": "^5.0.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"@types/hast": "^3.0.4",
|
|
101
101
|
"@types/mdast": "^4.0.3",
|
|
102
102
|
"@types/negotiator": "^0.6.3",
|
|
103
|
-
"@types/node": "22.10.
|
|
103
|
+
"@types/node": "22.10.5",
|
|
104
104
|
"@types/react": "^19.0.2",
|
|
105
105
|
"@types/react-dom": "^19.0.2",
|
|
106
106
|
"algoliasearch": "4.24.0",
|
|
107
107
|
"mdast-util-mdx-jsx": "^3.1.3",
|
|
108
108
|
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
109
|
-
"next": "^15.1.
|
|
109
|
+
"next": "^15.1.3",
|
|
110
110
|
"remark-mdx": "^3.1.0",
|
|
111
111
|
"remark-rehype": "^11.1.1",
|
|
112
112
|
"shiki-transformers": "^1.0.1",
|