@rspress-theme-anatole/theme-default 0.6.4 → 0.6.6
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 +11 -6
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -843,16 +843,21 @@ function Sidebar(props) {
|
|
|
843
843
|
if (parts.length && parts[parts.length - 1].includes('.')) {
|
|
844
844
|
parts.pop();
|
|
845
845
|
}
|
|
846
|
+
|
|
846
847
|
// 取前两级
|
|
847
848
|
const first = parts[0] || 'index';
|
|
848
849
|
const second = parts[1] || '';
|
|
849
|
-
|
|
850
|
+
|
|
851
|
+
const langArr = ['en', 'vn', 'zh'];
|
|
852
|
+
|
|
850
853
|
let fileName = '';
|
|
851
|
-
if (
|
|
852
|
-
fileName = `/${first}_${second}.pdf`;
|
|
853
|
-
} else if (first) {
|
|
854
|
+
if (!langArr.includes(first)) {
|
|
854
855
|
fileName = `/${first}.pdf`;
|
|
855
|
-
}
|
|
856
|
+
}
|
|
857
|
+
else if (second) {
|
|
858
|
+
fileName = `/${first}_${second}.pdf`;
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
856
861
|
fileName = '/index.pdf';
|
|
857
862
|
}
|
|
858
863
|
return fileName;
|
|
@@ -2995,7 +3000,7 @@ function HomeFooter() {
|
|
|
2995
3000
|
style: {
|
|
2996
3001
|
display: "flex",
|
|
2997
3002
|
fontWeight: "400",
|
|
2998
|
-
|
|
3003
|
+
color: "red"
|
|
2999
3004
|
}
|
|
3000
3005
|
}),
|
|
3001
3006
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
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.6.
|
|
4
|
+
"version": "0.6.6",
|
|
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.6.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.6.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.6.6",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.6.6",
|
|
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",
|