@rspress/core 2.0.18 → 2.0.19
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/{4538.js → 4538~0.js} +1 -1
- package/dist/6305~0.js +3007 -0
- package/dist/{3553.js → 8472~0.js} +2 -2
- package/dist/{0~execa.js → 864~0.js} +11 -11
- package/dist/cli/index.js +13 -40
- package/dist/config/defineConfig.d.ts +15 -15
- package/dist/config/loadConfigFile.js +1 -1
- package/dist/eject-theme/components/HoverGroup/index.scss +16 -0
- package/dist/eject-theme/components/HoverGroup/index.tsx +22 -1
- package/dist/eject-theme/components/Llms/LlmsCopyButton.tsx +2 -6
- package/dist/eject-theme/components/Llms/LlmsCopyRow.tsx +2 -5
- package/dist/eject-theme/components/Llms/LlmsHint.test.tsx +104 -0
- package/dist/eject-theme/components/Llms/LlmsHint.tsx +70 -0
- package/dist/eject-theme/components/Llms/getLlmsCopyContent.test.ts +21 -0
- package/dist/eject-theme/components/Llms/getLlmsCopyContent.ts +20 -0
- package/dist/eject-theme/components/Llms/index.tsx +1 -1
- package/dist/eject-theme/components/Nav/NavMenu.scss +16 -0
- package/dist/eject-theme/components/Nav/NavMenu.tsx +12 -0
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.scss +18 -2
- package/dist/eject-theme/components/NavScreen/NavScreenMenuItem.tsx +27 -19
- package/dist/eject-theme/components/NavScreen/index.scss +4 -0
- package/dist/eject-theme/components/Outline/index.scss +4 -0
- package/dist/eject-theme/components/Sidebar/SidebarGroup.tsx +3 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.scss +16 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.test.tsx +51 -0
- package/dist/eject-theme/components/Sidebar/SidebarItem.tsx +10 -1
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.scss +15 -0
- package/dist/eject-theme/components/Sidebar/SidebarSectionHeader.tsx +6 -1
- package/dist/eject-theme/components/Sidebar/index.tsx +1 -0
- package/dist/index.js +1 -1
- package/dist/node/PluginDriver.js +1 -1
- package/dist/node/auto-nav-sidebar/index.js +1 -1
- package/dist/node/auto-nav-sidebar/locales.js +1 -1
- package/dist/node/auto-nav-sidebar/normalize.js +39 -10
- package/dist/node/auto-nav-sidebar/type.d.ts +7 -0
- package/dist/node/auto-nav-sidebar/utils.d.ts +1 -0
- package/dist/node/auto-nav-sidebar/utils.js +2 -1
- package/dist/node/auto-nav-sidebar/walk.js +1 -1
- package/dist/node/constants.d.ts +2 -1
- package/dist/node/constants.js +50 -2
- package/dist/node/dev.d.ts +2 -1
- package/dist/node/dev.js +7 -2
- package/dist/node/eject.js +3 -3
- package/dist/node/initRsbuild.d.ts +6 -2
- package/dist/node/initRsbuild.js +35 -11
- package/dist/node/last-updated/index.js +112 -15
- package/dist/node/logger/hint.js +2 -2
- package/dist/node/mdx/options.js +1 -1
- package/dist/node/mdx/processor.js +1 -1
- package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
- package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -1
- package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
- package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
- package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +3 -3
- package/dist/node/mdx/remarkPlugins/image.js +3 -3
- package/dist/node/mdx/remarkPlugins/link.js +3 -3
- package/dist/node/mdx/remarkPlugins/toc.js +1 -1
- package/dist/node/medium-zoom/index.js +1 -1
- package/dist/node/route/RoutePage.js +1 -1
- package/dist/node/route/RouteService.js +1 -1
- package/dist/node/route/extractPageData.js +3 -15
- package/dist/node/route/normalizeRoutePath.js +1 -1
- package/dist/node/runtimeModule/i18n.js +3 -3
- package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
- package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
- package/dist/node/runtimeModule/searchHooks.js +1 -1
- package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
- package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
- package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
- package/dist/node/serve.js +1 -1
- package/dist/node/ssg/alternateLinks.js +1 -1
- package/dist/node/ssg/htmlFile.js +1 -1
- package/dist/node/ssg/renderHtmlTemplate.js +1 -1
- package/dist/node/ssg/renderPage.js +3 -3
- package/dist/node/ssg/renderPageWorker.js +2 -2
- package/dist/node/ssg/renderPages.js +5 -5
- package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
- package/dist/node/ssg/ssgEnv.js +1 -1
- package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
- package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
- package/dist/node/ssg-md/remarkSplitMdx.js +8 -10
- package/dist/node/ssg-md/renderPage.js +3 -3
- package/dist/node/ssg-md/renderPages.js +4 -4
- package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
- package/dist/node/utils/checkLanguageParity.js +1 -1
- package/dist/node/utils/createHash.js +1 -1
- package/dist/node/utils/error.js +2 -2
- package/dist/node/utils/flattenMdxContent.js +1 -1
- package/dist/node/utils/fs.js +1 -1
- package/dist/node/utils/getPageKey.js +1 -1
- package/dist/node/utils/normalizePath.js +1 -1
- package/dist/node/utils/reactAlias.js +3 -3
- package/dist/runtime/App.js +7 -4
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/reactDom.d.ts +19 -0
- package/dist/runtime/reactDom.js +5 -0
- package/dist/theme/components/HoverGroup/index.css +15 -0
- package/dist/theme/components/HoverGroup/index.js +17 -1
- package/dist/theme/components/Llms/LlmsCopyButton.js +3 -4
- package/dist/theme/components/Llms/LlmsCopyRow.js +2 -3
- package/dist/theme/components/Llms/LlmsHint.d.ts +2 -0
- package/dist/theme/components/Llms/LlmsHint.js +40 -0
- package/dist/theme/components/Llms/getLlmsCopyContent.d.ts +1 -0
- package/dist/theme/components/Llms/getLlmsCopyContent.js +14 -0
- package/dist/theme/components/Llms/index.d.ts +1 -1
- package/dist/theme/components/Llms/index.js +1 -1
- package/dist/theme/components/Nav/NavMenu.css +15 -0
- package/dist/theme/components/Nav/NavMenu.js +8 -0
- package/dist/theme/components/NavScreen/NavScreenMenuItem.css +17 -2
- package/dist/theme/components/NavScreen/NavScreenMenuItem.js +21 -22
- package/dist/theme/components/NavScreen/index.css +4 -0
- package/dist/theme/components/Outline/index.css +4 -0
- package/dist/theme/components/Sidebar/SidebarGroup.js +4 -1
- package/dist/theme/components/Sidebar/SidebarItem.css +15 -0
- package/dist/theme/components/Sidebar/SidebarItem.d.ts +2 -1
- package/dist/theme/components/Sidebar/SidebarItem.js +7 -2
- package/dist/theme/components/Sidebar/SidebarSectionHeader.css +14 -0
- package/dist/theme/components/Sidebar/SidebarSectionHeader.d.ts +2 -1
- package/dist/theme/components/Sidebar/SidebarSectionHeader.js +12 -6
- package/dist/theme/components/Sidebar/index.js +1 -0
- package/dist/theme/index.d.ts +1 -2
- package/dist/theme/index.js +1 -2
- package/dist/theme/layout/Layout/index.js +1 -2
- package/meta-json-schema.json +33 -3
- package/nav-json-schema.json +9 -0
- package/package.json +15 -20
- package/dist/5871.js +0 -7275
- package/dist/5871.js.LICENSE.txt +0 -41
- package/dist/eject-theme/components/Llms/LlmsHiddenHint.test.tsx +0 -23
- package/dist/eject-theme/components/Llms/LlmsHiddenHint.tsx +0 -15
- package/dist/theme/components/Llms/LlmsHiddenHint.d.ts +0 -1
- package/dist/theme/components/Llms/LlmsHiddenHint.js +0 -18
- package/dist/theme/logic/useRedirect4FirstVisit.d.ts +0 -5
- package/dist/theme/logic/useRedirect4FirstVisit.js +0 -31
- /package/dist/{102.js → 102~0.js} +0 -0
- /package/dist/{5357.js → 5357~0.js} +0 -0
- /package/dist/{7748.js → 7748~0.js} +0 -0
- /package/dist/{0~8016.js → 8016~0.js} +0 -0
- /package/dist/{9857.js → 9857~0.js} +0 -0
- /package/dist/{9940.js → 9940~0.js} +0 -0
- /package/dist/{0~rslib-runtime.js → rslib-runtime~0.js} +0 -0
- /package/dist/{0~tinypool.js → tinypool~0.js} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { NormalizedSidebarGroup, SidebarItem as SidebarItemType } from '@rspress/core';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import './SidebarItem.scss';
|
|
4
|
-
export declare function SidebarItemRaw({ active, text, tag, link, context, className, left, right, onClick, depth, }: {
|
|
4
|
+
export declare function SidebarItemRaw({ active, text, icon, tag, link, context, className, left, right, onClick, depth, }: {
|
|
5
5
|
className?: string;
|
|
6
6
|
active: boolean;
|
|
7
7
|
text: string;
|
|
8
|
+
icon: SidebarItemType['icon'];
|
|
8
9
|
tag: SidebarItemType['tag'];
|
|
9
10
|
link: string | undefined;
|
|
10
11
|
depth: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useActiveMatcher } from "@rspress/core/runtime";
|
|
3
|
-
import { Link, Tag, renderInlineMarkdown } from "@rspress/core/theme";
|
|
3
|
+
import { Link, SvgWrapper, Tag, renderInlineMarkdown } from "@rspress/core/theme";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useEffect, useRef, useTransition } from "react";
|
|
6
6
|
import "./SidebarItem.css";
|
|
7
7
|
import scroll_into_view_if_needed from "scroll-into-view-if-needed";
|
|
8
|
-
function SidebarItemRaw({ active, text, tag, link, context, className, left, right, onClick, depth }) {
|
|
8
|
+
function SidebarItemRaw({ active, text, icon, tag, link, context, className, left, right, onClick, depth }) {
|
|
9
9
|
const ref = useRef(null);
|
|
10
10
|
const [isPending, startTransition] = useTransition();
|
|
11
11
|
useEffect(()=>{
|
|
@@ -27,6 +27,10 @@ function SidebarItemRaw({ active, text, tag, link, context, className, left, rig
|
|
|
27
27
|
className: "rp-sidebar-item__left",
|
|
28
28
|
ref: ref,
|
|
29
29
|
children: [
|
|
30
|
+
icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
31
|
+
icon: icon,
|
|
32
|
+
className: "rp-sidebar-item__icon"
|
|
33
|
+
}),
|
|
30
34
|
/*#__PURE__*/ jsx("span", {
|
|
31
35
|
className: "rp-doc",
|
|
32
36
|
...renderInlineMarkdown(text)
|
|
@@ -86,6 +90,7 @@ function SidebarItem(props) {
|
|
|
86
90
|
className: className,
|
|
87
91
|
active: active,
|
|
88
92
|
link: item.link,
|
|
93
|
+
icon: item.icon,
|
|
89
94
|
tag: item.tag,
|
|
90
95
|
text: item.text,
|
|
91
96
|
context: item.context,
|
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
.rp-sidebar-section-header__left {
|
|
14
14
|
color: var(--rp-c-text-1);
|
|
15
15
|
align-items: center;
|
|
16
|
+
gap: 4px;
|
|
16
17
|
font-size: 14px;
|
|
17
18
|
font-weight: 600;
|
|
18
19
|
display: flex;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
.rp-sidebar-section-header__icon {
|
|
23
|
+
object-fit: contain;
|
|
24
|
+
flex: 0 0 16px;
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rp-sidebar-section-header__icon > svg, .rp-sidebar-section-header__icon > img {
|
|
30
|
+
object-fit: contain;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
21
35
|
.rp-sidebar-section-header__right {
|
|
22
36
|
align-items: center;
|
|
23
37
|
display: flex;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './SidebarSectionHeader.scss';
|
|
2
|
-
export declare function SidebarSectionHeader({ sectionHeaderText, tag, }: {
|
|
2
|
+
export declare function SidebarSectionHeader({ icon, sectionHeaderText, tag, }: {
|
|
3
|
+
icon?: string;
|
|
3
4
|
sectionHeaderText: string;
|
|
4
5
|
tag?: string;
|
|
5
6
|
}): import("react").JSX.Element;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Tag, renderInlineMarkdown } from "@rspress/core/theme";
|
|
2
|
+
import { SvgWrapper, Tag, renderInlineMarkdown } from "@rspress/core/theme";
|
|
3
3
|
import "./SidebarSectionHeader.css";
|
|
4
|
-
function SidebarSectionHeader({ sectionHeaderText, tag }) {
|
|
4
|
+
function SidebarSectionHeader({ icon, sectionHeaderText, tag }) {
|
|
5
5
|
return /*#__PURE__*/ jsxs("div", {
|
|
6
6
|
className: "rp-sidebar-section-header",
|
|
7
7
|
children: [
|
|
8
|
-
/*#__PURE__*/
|
|
8
|
+
/*#__PURE__*/ jsxs("div", {
|
|
9
9
|
className: "rp-sidebar-section-header__left",
|
|
10
|
-
children:
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
children: [
|
|
11
|
+
icon && /*#__PURE__*/ jsx(SvgWrapper, {
|
|
12
|
+
icon: icon,
|
|
13
|
+
className: "rp-sidebar-section-header__icon"
|
|
14
|
+
}),
|
|
15
|
+
/*#__PURE__*/ jsx("span", {
|
|
16
|
+
...renderInlineMarkdown(sectionHeaderText)
|
|
17
|
+
})
|
|
18
|
+
]
|
|
13
19
|
}),
|
|
14
20
|
/*#__PURE__*/ jsx("div", {
|
|
15
21
|
className: "rp-sidebar-section-header__right",
|
|
@@ -28,6 +28,7 @@ function SidebarListItem(props) {
|
|
|
28
28
|
dividerType: item.dividerType
|
|
29
29
|
}, index);
|
|
30
30
|
if (isSidebarSectionHeader(item)) return /*#__PURE__*/ jsx(SidebarSectionHeader, {
|
|
31
|
+
icon: item.icon,
|
|
31
32
|
sectionHeaderText: item.sectionHeaderText,
|
|
32
33
|
tag: item.tag
|
|
33
34
|
}, index);
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { useHoverGroup } from './components/HoverGroup/useHoverGroup.js';
|
|
|
21
21
|
export { LastUpdated } from './components/LastUpdated/index.js';
|
|
22
22
|
export { Link, type LinkProps } from './components/Link/index.js';
|
|
23
23
|
export { useLinkNavigate } from './components/Link/useLinkNavigate.js';
|
|
24
|
-
export { LlmsContainer, type LlmsContainerProps, LlmsCopyButton, type LlmsCopyButtonProps,
|
|
24
|
+
export { LlmsContainer, type LlmsContainerProps, LlmsCopyButton, type LlmsCopyButtonProps, LlmsHint, LlmsViewOptions, type LlmsViewOptionsItem, type LlmsViewOptionsProps, useMdUrl, } from './components/Llms/index.js';
|
|
25
25
|
export { LlmsCopyRow } from './components/Llms/LlmsCopyRow.js';
|
|
26
26
|
export { LlmsOpenRow } from './components/Llms/LlmsOpenRow.js';
|
|
27
27
|
export { Nav, type NavProps } from './components/Nav/index.js';
|
|
@@ -63,7 +63,6 @@ export { getCopyableText } from './logic/getCopyableText.js';
|
|
|
63
63
|
export { mergeRefs } from './logic/mergeRefs.js';
|
|
64
64
|
export { useFullTextSearch } from './logic/useFullTextSearch.js';
|
|
65
65
|
export { usePrevNextPage } from './logic/usePrevNextPage.js';
|
|
66
|
-
export { useRedirect4FirstVisit } from './logic/useRedirect4FirstVisit.js';
|
|
67
66
|
export { useScrollAfterNav } from './logic/useScrollAfterNav.js';
|
|
68
67
|
export { useScrollReset } from './logic/useScrollReset.js';
|
|
69
68
|
export { useSetup } from './logic/useSetup.js';
|
package/dist/theme/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export { useHoverGroup } from "./components/HoverGroup/useHoverGroup.js";
|
|
|
21
21
|
export { LastUpdated } from "./components/LastUpdated/index.js";
|
|
22
22
|
export { Link } from "./components/Link/index.js";
|
|
23
23
|
export { useLinkNavigate } from "./components/Link/useLinkNavigate.js";
|
|
24
|
-
export { LlmsContainer, LlmsCopyButton,
|
|
24
|
+
export { LlmsContainer, LlmsCopyButton, LlmsHint, LlmsViewOptions, useMdUrl } from "./components/Llms/index.js";
|
|
25
25
|
export { LlmsCopyRow } from "./components/Llms/LlmsCopyRow.js";
|
|
26
26
|
export { LlmsOpenRow } from "./components/Llms/LlmsOpenRow.js";
|
|
27
27
|
export { Nav } from "./components/Nav/index.js";
|
|
@@ -61,7 +61,6 @@ export { getCopyableText } from "./logic/getCopyableText.js";
|
|
|
61
61
|
export { mergeRefs } from "./logic/mergeRefs.js";
|
|
62
62
|
export { useFullTextSearch } from "./logic/useFullTextSearch.js";
|
|
63
63
|
export { usePrevNextPage } from "./logic/usePrevNextPage.js";
|
|
64
|
-
export { useRedirect4FirstVisit } from "./logic/useRedirect4FirstVisit.js";
|
|
65
64
|
export { useScrollAfterNav } from "./logic/useScrollAfterNav.js";
|
|
66
65
|
export { useScrollReset } from "./logic/useScrollReset.js";
|
|
67
66
|
export { useSetup } from "./logic/useSetup.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Content, useFrontmatter, useLocaleSiteData, usePage, useSite } from "@rspress/core/runtime";
|
|
3
|
-
import { DocLayout, HomeLayout as theme_HomeLayout, Nav, NotFoundLayout as theme_NotFoundLayout,
|
|
3
|
+
import { DocLayout, HomeLayout as theme_HomeLayout, Nav, NotFoundLayout as theme_NotFoundLayout, useScrollReset, useSetup } from "@rspress/core/theme";
|
|
4
4
|
import { Head, useHead } from "@unhead/react";
|
|
5
5
|
import react, { memo, useMemo } from "react";
|
|
6
6
|
const concatTitle = (title, suffix)=>{
|
|
@@ -116,7 +116,6 @@ function Layout(props) {
|
|
|
116
116
|
});
|
|
117
117
|
useSetup();
|
|
118
118
|
useScrollReset();
|
|
119
|
-
useRedirect4FirstVisit();
|
|
120
119
|
const { frontmatter: { navbar: showNavbar = true } } = useFrontmatter();
|
|
121
120
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
122
121
|
children: [
|
package/meta-json-schema.json
CHANGED
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
"label": {
|
|
50
50
|
"type": "string"
|
|
51
51
|
},
|
|
52
|
+
"icon": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
52
55
|
"tag": {
|
|
53
56
|
"type": "string"
|
|
54
57
|
},
|
|
@@ -81,6 +84,9 @@
|
|
|
81
84
|
"label": {
|
|
82
85
|
"type": "string"
|
|
83
86
|
},
|
|
87
|
+
"icon": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
84
90
|
"tag": {
|
|
85
91
|
"type": "string"
|
|
86
92
|
},
|
|
@@ -117,6 +123,9 @@
|
|
|
117
123
|
"label": {
|
|
118
124
|
"type": "string"
|
|
119
125
|
},
|
|
126
|
+
"icon": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
120
129
|
"tag": {
|
|
121
130
|
"type": "string"
|
|
122
131
|
},
|
|
@@ -171,6 +180,9 @@
|
|
|
171
180
|
"label": {
|
|
172
181
|
"type": "string"
|
|
173
182
|
},
|
|
183
|
+
"icon": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
174
186
|
"tag": {
|
|
175
187
|
"type": "string"
|
|
176
188
|
}
|
|
@@ -193,6 +205,9 @@
|
|
|
193
205
|
"label": {
|
|
194
206
|
"type": "string"
|
|
195
207
|
},
|
|
208
|
+
"icon": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
196
211
|
"tag": {
|
|
197
212
|
"type": "string"
|
|
198
213
|
},
|
|
@@ -226,6 +241,9 @@
|
|
|
226
241
|
"label": {
|
|
227
242
|
"type": "string"
|
|
228
243
|
},
|
|
244
|
+
"icon": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
229
247
|
"tag": {
|
|
230
248
|
"type": "string"
|
|
231
249
|
},
|
|
@@ -261,6 +279,9 @@
|
|
|
261
279
|
"label": {
|
|
262
280
|
"type": "string"
|
|
263
281
|
},
|
|
282
|
+
"icon": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
264
285
|
"tag": {
|
|
265
286
|
"type": "string"
|
|
266
287
|
},
|
|
@@ -293,6 +314,9 @@
|
|
|
293
314
|
"label": {
|
|
294
315
|
"type": "string"
|
|
295
316
|
},
|
|
317
|
+
"icon": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
296
320
|
"tag": {
|
|
297
321
|
"type": "string"
|
|
298
322
|
},
|
|
@@ -317,7 +341,7 @@
|
|
|
317
341
|
"items": {
|
|
318
342
|
"type": "array",
|
|
319
343
|
"items": {
|
|
320
|
-
"$ref": "#/definitions/alias-926151818-
|
|
344
|
+
"$ref": "#/definitions/alias-926151818-751-1381-926151818-0-2286"
|
|
321
345
|
}
|
|
322
346
|
}
|
|
323
347
|
},
|
|
@@ -340,7 +364,7 @@
|
|
|
340
364
|
}
|
|
341
365
|
]
|
|
342
366
|
},
|
|
343
|
-
"alias-926151818-
|
|
367
|
+
"alias-926151818-751-1381-926151818-0-2286": {
|
|
344
368
|
"anyOf": [
|
|
345
369
|
{
|
|
346
370
|
"type": "object",
|
|
@@ -352,6 +376,9 @@
|
|
|
352
376
|
"label": {
|
|
353
377
|
"type": "string"
|
|
354
378
|
},
|
|
379
|
+
"icon": {
|
|
380
|
+
"type": "string"
|
|
381
|
+
},
|
|
355
382
|
"tag": {
|
|
356
383
|
"type": "string"
|
|
357
384
|
},
|
|
@@ -384,6 +411,9 @@
|
|
|
384
411
|
"label": {
|
|
385
412
|
"type": "string"
|
|
386
413
|
},
|
|
414
|
+
"icon": {
|
|
415
|
+
"type": "string"
|
|
416
|
+
},
|
|
387
417
|
"tag": {
|
|
388
418
|
"type": "string"
|
|
389
419
|
},
|
|
@@ -408,7 +438,7 @@
|
|
|
408
438
|
"items": {
|
|
409
439
|
"type": "array",
|
|
410
440
|
"items": {
|
|
411
|
-
"$ref": "#/definitions/alias-926151818-
|
|
441
|
+
"$ref": "#/definitions/alias-926151818-751-1381-926151818-0-2286"
|
|
412
442
|
}
|
|
413
443
|
}
|
|
414
444
|
},
|
package/nav-json-schema.json
CHANGED
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"download": {
|
|
34
34
|
"type": "boolean"
|
|
35
35
|
},
|
|
36
|
+
"icon": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
36
39
|
"tag": {
|
|
37
40
|
"type": "string"
|
|
38
41
|
},
|
|
@@ -65,6 +68,9 @@
|
|
|
65
68
|
"text": {
|
|
66
69
|
"type": "string"
|
|
67
70
|
},
|
|
71
|
+
"icon": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
68
74
|
"tag": {
|
|
69
75
|
"type": "string"
|
|
70
76
|
},
|
|
@@ -102,6 +108,9 @@
|
|
|
102
108
|
"$ref": "#/definitions/NavItem"
|
|
103
109
|
}
|
|
104
110
|
},
|
|
111
|
+
"icon": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
105
114
|
"tag": {
|
|
106
115
|
"type": "string"
|
|
107
116
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.19",
|
|
4
4
|
"description": "The Rspress Documentation Framework",
|
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
6
|
"repository": {
|
|
@@ -60,11 +60,12 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@mdx-js/mdx": "^3.1.1",
|
|
62
62
|
"@mdx-js/react": "^3.1.1",
|
|
63
|
-
"@rsbuild/core": "^2.1.
|
|
63
|
+
"@rsbuild/core": "^2.1.8",
|
|
64
64
|
"@rsbuild/plugin-react": "~2.1.0",
|
|
65
65
|
"@shikijs/rehype": "^4.2.0",
|
|
66
|
-
"@types/
|
|
67
|
-
"@
|
|
66
|
+
"@types/mdast": "^4.0.4",
|
|
67
|
+
"@types/react": "^19.2.17",
|
|
68
|
+
"@unhead/react": "^2.1.16",
|
|
68
69
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
69
70
|
"clsx": "2.1.1",
|
|
70
71
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -75,10 +76,9 @@
|
|
|
75
76
|
"mdast-util-mdxjs-esm": "^2.0.1",
|
|
76
77
|
"medium-zoom": "1.1.0",
|
|
77
78
|
"nprogress": "^0.2.0",
|
|
78
|
-
"react": "^19.2.
|
|
79
|
-
"react-dom": "^19.2.
|
|
79
|
+
"react": "^19.2.8",
|
|
80
|
+
"react-dom": "^19.2.8",
|
|
80
81
|
"react-lazy-with-preload": "^2.2.1",
|
|
81
|
-
"react-reconciler": "0.33.0",
|
|
82
82
|
"react-render-to-markdown": "19.1.0",
|
|
83
83
|
"react-router-dom": "^7.18.1",
|
|
84
84
|
"rehype-external-links": "^3.0.0",
|
|
@@ -92,34 +92,30 @@
|
|
|
92
92
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
93
93
|
"shiki": "^4.2.0",
|
|
94
94
|
"unified": "^11.0.5",
|
|
95
|
-
"unist-util-remove": "^4.0.0",
|
|
96
95
|
"unist-util-visit": "^5.1.0",
|
|
97
96
|
"unist-util-visit-children": "^3.0.0",
|
|
98
|
-
"
|
|
97
|
+
"vfile": "^6.0.3",
|
|
98
|
+
"@rspress/shared": "2.0.19"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@microsoft/api-extractor": "^7.58.
|
|
101
|
+
"@microsoft/api-extractor": "^7.58.12",
|
|
102
102
|
"@rsbuild/plugin-sass": "~1.5.3",
|
|
103
103
|
"@rsbuild/plugin-svgr": "^2.0.5",
|
|
104
|
-
"@rslib/core": "0.
|
|
104
|
+
"@rslib/core": "1.0.0-beta.1",
|
|
105
105
|
"@types/body-scroll-lock": "^3.1.2",
|
|
106
106
|
"@types/hast": "^3.0.5",
|
|
107
|
-
"@types/mdast": "^4.0.4",
|
|
108
107
|
"@types/node": "^22.8.1",
|
|
109
108
|
"@types/nprogress": "^0.2.3",
|
|
110
|
-
"@types/react": "^19.2.17",
|
|
111
109
|
"@types/react-dom": "^19.2.3",
|
|
112
|
-
"@types/
|
|
113
|
-
"@types/web": "^0.0.352",
|
|
110
|
+
"@types/web": "^0.0.353",
|
|
114
111
|
"cac": "^7.0.0",
|
|
115
|
-
"chokidar": "^3.6.0",
|
|
116
112
|
"execa": "8.0.1",
|
|
117
113
|
"mdast-util-directive": "^3.1.0",
|
|
118
114
|
"mdast-util-mdx-expression": "^2.0.1",
|
|
119
|
-
"memfs": "^4.
|
|
120
|
-
"p-map": "^7.0.
|
|
115
|
+
"memfs": "^4.64.0",
|
|
116
|
+
"p-map": "^7.0.6",
|
|
121
117
|
"picocolors": "^1.1.1",
|
|
122
|
-
"postcss": "8.5.
|
|
118
|
+
"postcss": "8.5.23",
|
|
123
119
|
"remark-directive": "^4.0.0",
|
|
124
120
|
"rsbuild-plugin-publint": "^1.0.0",
|
|
125
121
|
"rsbuild-plugin-virtual-module": "0.4.5",
|
|
@@ -127,7 +123,6 @@
|
|
|
127
123
|
"tinypool": "^1.1.1",
|
|
128
124
|
"ts-json-schema-generator": "^2.9.0",
|
|
129
125
|
"typescript": "^6.0.3",
|
|
130
|
-
"vfile": "^6.0.3",
|
|
131
126
|
"@rspress/config": "1.0.0"
|
|
132
127
|
},
|
|
133
128
|
"engines": {
|