@rspress-theme-anatole/theme-default 0.7.46 → 0.7.47
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.js +35 -13
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -4353,6 +4353,25 @@ function HomepageTopSearch({ frontmatter, routePath }) {
|
|
|
4353
4353
|
function IntroBanner({ frontmatter, routePath }) {
|
|
4354
4354
|
const banner = frontmatter?.banner || DEFAULT_HERO;
|
|
4355
4355
|
|
|
4356
|
+
// Build breadcrumb items: root first, then parents array, then current
|
|
4357
|
+
const buildBreadcrumbs = () => {
|
|
4358
|
+
const items = [];
|
|
4359
|
+
|
|
4360
|
+
// Add root if exists
|
|
4361
|
+
if (banner.root?.text) {
|
|
4362
|
+
items.push(banner.root);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
// Add parents array if exists
|
|
4366
|
+
if (banner.parents && Array.isArray(banner.parents)) {
|
|
4367
|
+
items.push(...banner.parents);
|
|
4368
|
+
}
|
|
4369
|
+
|
|
4370
|
+
return items;
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
const breadcrumbItems = buildBreadcrumbs();
|
|
4374
|
+
|
|
4356
4375
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
4357
4376
|
style: {
|
|
4358
4377
|
height: "233px",
|
|
@@ -4373,19 +4392,22 @@ function IntroBanner({ frontmatter, routePath }) {
|
|
|
4373
4392
|
marginBottom: "10px"
|
|
4374
4393
|
},
|
|
4375
4394
|
children: [
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4395
|
+
...breadcrumbItems.map((item, index) => [
|
|
4396
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
4397
|
+
"a",
|
|
4398
|
+
{
|
|
4399
|
+
href: item.link,
|
|
4400
|
+
style: {
|
|
4401
|
+
textDecoration: "underline",
|
|
4402
|
+
color: "#32363E",
|
|
4403
|
+
fontWeight: "600"
|
|
4404
|
+
},
|
|
4405
|
+
children: item.text
|
|
4406
|
+
},
|
|
4407
|
+
`breadcrumb-${index}`
|
|
4408
|
+
),
|
|
4409
|
+
" > "
|
|
4410
|
+
]).flat(),
|
|
4389
4411
|
banner.current
|
|
4390
4412
|
]
|
|
4391
4413
|
}),
|
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.47",
|
|
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.47",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.47",
|
|
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",
|