fumadocs-core 16.3.1 → 16.3.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.
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
remarkImage
|
|
3
|
-
} from "../chunk-5PMI7QDD.js";
|
|
4
1
|
import {
|
|
5
2
|
remarkMdxFiles
|
|
6
3
|
} from "../chunk-ADBHPKXG.js";
|
|
@@ -23,7 +20,8 @@ import {
|
|
|
23
20
|
rehypeCodeDefaultOptions,
|
|
24
21
|
transformerIcon,
|
|
25
22
|
transformerTab
|
|
26
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-QJRXMG4S.js";
|
|
24
|
+
import "../chunk-XN2LKXFZ.js";
|
|
27
25
|
import {
|
|
28
26
|
rehypeToc
|
|
29
27
|
} from "../chunk-EFVXL2PP.js";
|
|
@@ -33,17 +31,19 @@ import {
|
|
|
33
31
|
import {
|
|
34
32
|
remarkCodeTab
|
|
35
33
|
} from "../chunk-CH7YHH7V.js";
|
|
36
|
-
import {
|
|
37
|
-
generateCodeBlockTabs,
|
|
38
|
-
parseCodeBlockAttributes
|
|
39
|
-
} from "../chunk-TWIDBWFG.js";
|
|
40
34
|
import {
|
|
41
35
|
remarkDirectiveAdmonition
|
|
42
36
|
} from "../chunk-APKPSBSB.js";
|
|
43
37
|
import {
|
|
44
38
|
default as default2
|
|
45
39
|
} from "../chunk-ONG4RVCR.js";
|
|
46
|
-
import
|
|
40
|
+
import {
|
|
41
|
+
remarkImage
|
|
42
|
+
} from "../chunk-5PMI7QDD.js";
|
|
43
|
+
import {
|
|
44
|
+
generateCodeBlockTabs,
|
|
45
|
+
parseCodeBlockAttributes
|
|
46
|
+
} from "../chunk-TWIDBWFG.js";
|
|
47
47
|
import {
|
|
48
48
|
remarkHeading
|
|
49
49
|
} from "../chunk-MA6O2UUE.js";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
rehypeCodeDefaultOptions,
|
|
4
4
|
transformerIcon,
|
|
5
5
|
transformerTab
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-TWIDBWFG.js";
|
|
6
|
+
} from "../chunk-QJRXMG4S.js";
|
|
8
7
|
import "../chunk-XN2LKXFZ.js";
|
|
8
|
+
import "../chunk-TWIDBWFG.js";
|
|
9
9
|
import "../chunk-U67V476Y.js";
|
|
10
10
|
export {
|
|
11
11
|
rehypeCode,
|
|
@@ -63,10 +63,9 @@ function extractHeadingTitle(text) {
|
|
|
63
63
|
const lines = trimmedText.split("\n");
|
|
64
64
|
const firstLine = lines[0]?.trim();
|
|
65
65
|
if (firstLine) {
|
|
66
|
-
|
|
66
|
+
return (0, import_remove_markdown.default)(firstLine, {
|
|
67
67
|
useImgAltText: false
|
|
68
68
|
});
|
|
69
|
-
return plainText;
|
|
70
69
|
}
|
|
71
70
|
return "";
|
|
72
71
|
}
|
|
@@ -75,9 +74,9 @@ async function search(query, options) {
|
|
|
75
74
|
if (!query.trim()) {
|
|
76
75
|
return [];
|
|
77
76
|
}
|
|
78
|
-
const res = await client.
|
|
77
|
+
const res = await client.stores.search({
|
|
79
78
|
query,
|
|
80
|
-
|
|
79
|
+
store_identifiers: [vectorStoreId],
|
|
81
80
|
top_k: 10,
|
|
82
81
|
filters: {
|
|
83
82
|
key: "generated_metadata.tag",
|
package/dist/search/client.js
CHANGED
|
@@ -75,7 +75,7 @@ function useDocsSearch(clientOptions, deps) {
|
|
|
75
75
|
return search2(debouncedValue, client);
|
|
76
76
|
}
|
|
77
77
|
if (client.type === "mixedbread") {
|
|
78
|
-
const { search: search2 } = await import("../mixedbread-
|
|
78
|
+
const { search: search2 } = await import("../mixedbread-2ZQZ32QK.js");
|
|
79
79
|
return search2(debouncedValue, client);
|
|
80
80
|
}
|
|
81
81
|
throw new Error("unknown search client");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.3.
|
|
3
|
+
"version": "16.3.2",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fumadocs",
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"vfile": "^6.0.3",
|
|
155
155
|
"waku": "^0.27.5",
|
|
156
156
|
"zod": "^4.2.1",
|
|
157
|
-
"
|
|
158
|
-
"
|
|
157
|
+
"eslint-config-custom": "0.0.0",
|
|
158
|
+
"tsconfig": "0.0.0"
|
|
159
159
|
},
|
|
160
160
|
"peerDependencies": {
|
|
161
161
|
"@mixedbread/sdk": "^0.19.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseCodeBlockAttributes
|
|
3
|
-
} from "./chunk-TWIDBWFG.js";
|
|
4
1
|
import {
|
|
5
2
|
defaultThemes,
|
|
6
3
|
getHighlighter
|
|
7
4
|
} from "./chunk-XN2LKXFZ.js";
|
|
5
|
+
import {
|
|
6
|
+
parseCodeBlockAttributes
|
|
7
|
+
} from "./chunk-TWIDBWFG.js";
|
|
8
8
|
|
|
9
9
|
// src/mdx-plugins/rehype-code.ts
|
|
10
10
|
import rehypeShikiFromHighlighter from "@shikijs/rehype/core";
|