fumadocs-core 16.7.8 → 16.7.10
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/content/mdx/preset-bundler.js +1 -1
- package/dist/content/mdx/preset-runtime.js +1 -1
- package/dist/source/client/index.js +5 -13
- package/dist/source/index.js +3 -3
- package/dist/source/plugins/lucide-icons.js +1 -1
- package/package.json +2 -2
- /package/dist/{icon-BpyLCZhB.js → icon-CfEtMzdP.js} +0 -0
- /package/dist/{util-CT8y1EgJ.js → util-BnfE-P1F.js} +0 -0
|
@@ -2,22 +2,14 @@ import { c as visit } from "../../utils-6GexS7iX.js";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/source/client/index.tsx
|
|
5
|
-
function deserializeHTML(html) {
|
|
6
|
-
return /* @__PURE__ */ jsx("span", {
|
|
7
|
-
style: {
|
|
8
|
-
display: "inline-flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
gap: "4px",
|
|
11
|
-
width: "100%"
|
|
12
|
-
},
|
|
13
|
-
dangerouslySetInnerHTML: { __html: html }
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
5
|
function deserializePageTree(serialized) {
|
|
17
6
|
const root = serialized.data;
|
|
18
7
|
visit(root, (item) => {
|
|
19
|
-
if ("icon" in item && typeof item.icon === "string") item.icon =
|
|
20
|
-
if (typeof item.name === "string") item.name =
|
|
8
|
+
if ("icon" in item && typeof item.icon === "string") item.icon = /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: item.icon } });
|
|
9
|
+
if (typeof item.name === "string") item.name = /* @__PURE__ */ jsx("span", {
|
|
10
|
+
className: "fd-page-tree-item-name",
|
|
11
|
+
dangerouslySetInnerHTML: { __html: item.name }
|
|
12
|
+
});
|
|
21
13
|
});
|
|
22
14
|
return root;
|
|
23
15
|
}
|
package/dist/source/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as normalizeUrl } from "../normalize-url-J3kqKlu4.js";
|
|
|
2
2
|
import { c as visit } from "../utils-6GexS7iX.js";
|
|
3
3
|
import { a as path_exports, i as joinPath, n as dirname, o as slash, r as extname, s as splitPath, t as basename } from "../path-CL7hf0GY.js";
|
|
4
4
|
import { getSlugs, slugsPlugin } from "./plugins/slugs.js";
|
|
5
|
-
import { t as iconPlugin } from "../icon-
|
|
5
|
+
import { t as iconPlugin } from "../icon-CfEtMzdP.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
//#region src/source/source.ts
|
|
8
8
|
function multiple(sources) {
|
|
@@ -679,7 +679,7 @@ function loader(...args) {
|
|
|
679
679
|
getPageByHref(href, { dir = "", language = i18n?.defaultLanguage } = {}) {
|
|
680
680
|
const [value, hash] = href.split("#", 2);
|
|
681
681
|
let target;
|
|
682
|
-
if (value.startsWith("./")) {
|
|
682
|
+
if (value.startsWith("./") || value.startsWith("../")) {
|
|
683
683
|
const path = joinPath(dir, value);
|
|
684
684
|
target = indexer.getPage(path, language);
|
|
685
685
|
} else target = this.getPages(language).find((item) => item.url === value);
|
|
@@ -689,7 +689,7 @@ function loader(...args) {
|
|
|
689
689
|
};
|
|
690
690
|
},
|
|
691
691
|
resolveHref(href, parent) {
|
|
692
|
-
if (href.startsWith("./")) {
|
|
692
|
+
if (href.startsWith("./") || href.startsWith("../")) {
|
|
693
693
|
const target = this.getPageByHref(href, {
|
|
694
694
|
dir: path.dirname(parent.path),
|
|
695
695
|
language: parent.locale
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.10",
|
|
4
4
|
"description": "The React.js library for building a documentation website",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"algoliasearch": "5.50.0",
|
|
157
157
|
"flexsearch": "^0.8.212",
|
|
158
158
|
"lucide-react": "^1.7.0",
|
|
159
|
-
"next": "16.2.
|
|
159
|
+
"next": "16.2.2",
|
|
160
160
|
"react-router": "^7.13.2",
|
|
161
161
|
"remark-directive": "^4.0.0",
|
|
162
162
|
"remark-mdx": "^3.1.1",
|
|
File without changes
|
|
File without changes
|