@rspress-theme-anatole/theme-default 0.7.31 → 0.7.33
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/bundle.css +7 -0
- package/dist/bundle.js +9 -3
- package/package.json +4 -4
package/dist/bundle.css
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -754,7 +754,7 @@ function SidebarGroup(props) {
|
|
|
754
754
|
const transitionRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)();
|
|
755
755
|
const innerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
756
756
|
const initialRender = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(true);
|
|
757
|
-
const initialState = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)('collapsed' in item
|
|
757
|
+
const initialState = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(!('collapsed' in item) || item.collapsed);
|
|
758
758
|
const active = item.link && activeMatcher(item.link);
|
|
759
759
|
const { collapsed, collapsible = true } = item;
|
|
760
760
|
const isLocked = item.locked === true;
|
|
@@ -1086,6 +1086,7 @@ function Sidebar(props) {
|
|
|
1086
1086
|
if ('items' in item) {
|
|
1087
1087
|
item.items.forEach(traverse);
|
|
1088
1088
|
if (match(item)) item.collapsed = false;
|
|
1089
|
+
else item.collapsed = true;
|
|
1089
1090
|
}
|
|
1090
1091
|
};
|
|
1091
1092
|
const newSidebarData = rawSidebarData.filter(Boolean).flat();
|
|
@@ -1190,7 +1191,7 @@ function Sidebar(props) {
|
|
|
1190
1191
|
className: "fa-regular fa-file-pdf",
|
|
1191
1192
|
style: { marginRight: '8px' }
|
|
1192
1193
|
}),
|
|
1193
|
-
"Download
|
|
1194
|
+
"Download full guide"
|
|
1194
1195
|
]
|
|
1195
1196
|
})
|
|
1196
1197
|
})
|
|
@@ -1642,7 +1643,7 @@ function DocLayout(props) {
|
|
|
1642
1643
|
}),
|
|
1643
1644
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
1644
1645
|
className: "ml-2",
|
|
1645
|
-
children: "
|
|
1646
|
+
children: "Download this article"
|
|
1646
1647
|
})
|
|
1647
1648
|
],
|
|
1648
1649
|
style: {
|
|
@@ -3442,6 +3443,11 @@ function HomepageFeaturesTabs({ frontmatter, routePath }) {
|
|
|
3442
3443
|
return featureTab && featureTab.tabs && featureTab.tabs.length > 0 ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3443
3444
|
className: "features-div",
|
|
3444
3445
|
children: [
|
|
3446
|
+
featureTab.title && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
3447
|
+
className: "features-title",
|
|
3448
|
+
children: featureTab.title
|
|
3449
|
+
}),
|
|
3450
|
+
|
|
3445
3451
|
//Tabs
|
|
3446
3452
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3447
3453
|
className: "features-tabs",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.33",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/bundle.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mdx-js/react": "2.3.0",
|
|
24
|
-
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.7.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.33",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.33",
|
|
26
26
|
"@rspress/runtime": "1.43.8",
|
|
27
27
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|