@rspress-theme-anatole/theme-default 0.1.2 → 0.1.3
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 +0 -10
- package/dist/bundle.js +59 -21
- package/package.json +3 -3
- package/package1.json +0 -89
package/dist/bundle.css
CHANGED
|
@@ -3507,14 +3507,4 @@ p {
|
|
|
3507
3507
|
|
|
3508
3508
|
.rspress-nav {
|
|
3509
3509
|
border-bottom: 1px solid var(--Colors-Neutral-3, #D2D5DA);
|
|
3510
|
-
}
|
|
3511
|
-
|
|
3512
|
-
footer {
|
|
3513
|
-
background-color: #32363E;
|
|
3514
|
-
height: 60px;
|
|
3515
|
-
}
|
|
3516
|
-
|
|
3517
|
-
.footer-link {
|
|
3518
|
-
display: flex;
|
|
3519
|
-
gap: 20px;
|
|
3520
3510
|
}
|
package/dist/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__mdx_js_react_0d3abecb__ from "@mdx-js/react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__ from "@rspress
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__ from "@rspress/runtime";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__theme_75e53063__ from "@theme";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_github_slugger_8e9a17cb__ from "github-slugger";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
@@ -1184,7 +1184,7 @@ function HomeLayout(props) {
|
|
|
1184
1184
|
className: "relative",
|
|
1185
1185
|
style: {
|
|
1186
1186
|
minHeight: 'calc(100vh - var(--rp-nav-height))',
|
|
1187
|
-
paddingBottom: '80px'
|
|
1187
|
+
// paddingBottom: '80px'
|
|
1188
1188
|
},
|
|
1189
1189
|
children: [
|
|
1190
1190
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
@@ -2483,27 +2483,65 @@ function HomeFeature({ frontmatter, routePath }) {
|
|
|
2483
2483
|
|
|
2484
2484
|
function HomeFooter() {
|
|
2485
2485
|
const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
|
|
2486
|
-
const { message } = siteData.themeConfig.footer || {};
|
|
2486
|
+
const { group, message, links, social } = siteData.themeConfig.footer || {};
|
|
2487
2487
|
if (!message) return null;
|
|
2488
2488
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("footer", {
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
}
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2489
|
+
children: [
|
|
2490
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2491
|
+
dangerouslySetInnerHTML: {
|
|
2492
|
+
__html: group.map((groupItem) => { return `<a href="${groupItem.link}" class="">${groupItem.text}</a>` }).join("")
|
|
2493
|
+
},
|
|
2494
|
+
style: {
|
|
2495
|
+
gap: "20px",
|
|
2496
|
+
display: "flex",
|
|
2497
|
+
fontWeight: "600",
|
|
2498
|
+
}
|
|
2499
|
+
}),
|
|
2500
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2501
|
+
dangerouslySetInnerHTML: {
|
|
2502
|
+
__html: links.map((link) => { return `<a href="${link.link}" class="">${link.text}</a>` }).join("")
|
|
2503
|
+
},
|
|
2504
|
+
style: {
|
|
2505
|
+
gap: "20px",
|
|
2506
|
+
display: "flex",
|
|
2507
|
+
fontWeight: "600",
|
|
2508
|
+
|
|
2509
|
+
}
|
|
2510
|
+
}),
|
|
2511
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2512
|
+
dangerouslySetInnerHTML: {
|
|
2513
|
+
__html: message
|
|
2514
|
+
},
|
|
2515
|
+
style: {
|
|
2516
|
+
display: "flex",
|
|
2517
|
+
fontWeight: "400",
|
|
2518
|
+
|
|
2519
|
+
}
|
|
2520
|
+
}),
|
|
2521
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
2522
|
+
dangerouslySetInnerHTML: {
|
|
2523
|
+
__html: social.map((socialItem) => { return `<a href="${socialItem.link}" class="">${socialItem.text}</a>` }).join("")
|
|
2524
|
+
},
|
|
2525
|
+
style: {
|
|
2526
|
+
gap: "20px",
|
|
2527
|
+
display: "flex",
|
|
2528
|
+
fontWeight: "400",
|
|
2529
|
+
lineHeight: "18px",
|
|
2530
|
+
}
|
|
2531
|
+
}),
|
|
2532
|
+
],
|
|
2533
|
+
style: {
|
|
2534
|
+
height: "60px",
|
|
2535
|
+
background: "#32363E",
|
|
2536
|
+
color: "var(--Colors-White, #fff)",
|
|
2537
|
+
fontSize: "14px",
|
|
2538
|
+
display: "flex",
|
|
2539
|
+
justifyContent: "space-between",
|
|
2540
|
+
alignItems: "center",
|
|
2541
|
+
letterSpacing: "-1%",
|
|
2542
|
+
padding: "0 40px",
|
|
2543
|
+
borderTop: "1px solid #7E8695",
|
|
2544
|
+
}
|
|
2507
2545
|
});
|
|
2508
2546
|
}
|
|
2509
2547
|
|
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.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"react-dom": "^18.3.1",
|
|
33
33
|
"react-helmet-async": "^1.3.0",
|
|
34
34
|
"react-syntax-highlighter": "^15.6.1",
|
|
35
|
-
"@rspress
|
|
36
|
-
"@rspress-theme-anatole/shared": "0.1.
|
|
35
|
+
"@rspress/runtime": "1.43.8",
|
|
36
|
+
"@rspress-theme-anatole/shared": "0.1.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@microsoft/api-extractor": "^7.49.2",
|
package/package1.json
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rspress-theme-anatole/theme-default",
|
|
3
|
-
"version": "0.0.10",
|
|
4
|
-
"description": "Anatole theme for Rspress",
|
|
5
|
-
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/web-infra-dev/rspress",
|
|
9
|
-
"directory": "packages/theme-default"
|
|
10
|
-
},
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"sideEffects": [
|
|
13
|
-
"*.css",
|
|
14
|
-
"*.less",
|
|
15
|
-
"*.sass",
|
|
16
|
-
"*.scss",
|
|
17
|
-
"**/virtual-global-styles.js",
|
|
18
|
-
"virtual-global-styles",
|
|
19
|
-
"./src/styles/index.ts",
|
|
20
|
-
"./dist/index.js"
|
|
21
|
-
],
|
|
22
|
-
"type": "module",
|
|
23
|
-
"imports": {
|
|
24
|
-
"#theme/*": "./src/*"
|
|
25
|
-
},
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"types": "./dist/bundle.d.ts",
|
|
29
|
-
"default": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./node/*": "./dist/node/*",
|
|
32
|
-
"./package.json": "./package.json",
|
|
33
|
-
"./bundle.css": "./dist/bundle.css"
|
|
34
|
-
},
|
|
35
|
-
"main": "./dist/index.js",
|
|
36
|
-
"types": "./dist/bundle.d.ts",
|
|
37
|
-
"files": [
|
|
38
|
-
"dist"
|
|
39
|
-
],
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@mdx-js/react": "2.3.0",
|
|
42
|
-
"body-scroll-lock": "4.0.0-beta.0",
|
|
43
|
-
"copy-to-clipboard": "^3.3.3",
|
|
44
|
-
"flexsearch": "0.7.43",
|
|
45
|
-
"github-slugger": "^2.0.0",
|
|
46
|
-
"htmr": "^1.0.2",
|
|
47
|
-
"lodash-es": "^4.17.21",
|
|
48
|
-
"nprogress": "^0.2.0",
|
|
49
|
-
"react": "^18.3.1",
|
|
50
|
-
"react-dom": "^18.3.1",
|
|
51
|
-
"react-helmet-async": "^1.3.0",
|
|
52
|
-
"react-syntax-highlighter": "^15.6.1",
|
|
53
|
-
"@rspress-theme-anatole/runtime": "0.1.0",
|
|
54
|
-
"@rspress-theme-anatole/shared": "0.1.0"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@microsoft/api-extractor": "^7.49.2",
|
|
58
|
-
"@modern-js/tsconfig": "2.64.0",
|
|
59
|
-
"@rsbuild/plugin-react": "~1.1.0",
|
|
60
|
-
"@rsbuild/plugin-sass": "~1.2.0",
|
|
61
|
-
"@rsbuild/plugin-svgr": "^1.0.6",
|
|
62
|
-
"@rslib/core": "0.5.2",
|
|
63
|
-
"@types/body-scroll-lock": "^3.1.2",
|
|
64
|
-
"@types/hast": "^2.3.10",
|
|
65
|
-
"@types/jest": "~29.5.14",
|
|
66
|
-
"@types/lodash-es": "^4.17.12",
|
|
67
|
-
"@types/mdast": "^3.0.15",
|
|
68
|
-
"@types/nprogress": "^0.2.3",
|
|
69
|
-
"@types/react": "^18.3.18",
|
|
70
|
-
"@types/react-dom": "^18.3.5",
|
|
71
|
-
"@types/react-syntax-highlighter": "^15.5.13",
|
|
72
|
-
"gray-matter": "4.0.3",
|
|
73
|
-
"tailwindcss": "^3.4.17",
|
|
74
|
-
"typescript": "^5.5.3"
|
|
75
|
-
},
|
|
76
|
-
"engines": {
|
|
77
|
-
"node": ">=14.17.6"
|
|
78
|
-
},
|
|
79
|
-
"publishConfig": {
|
|
80
|
-
"access": "public",
|
|
81
|
-
"provenance": true,
|
|
82
|
-
"registry": "https://registry.npmjs.org/"
|
|
83
|
-
},
|
|
84
|
-
"scripts": {
|
|
85
|
-
"build": "rslib build",
|
|
86
|
-
"dev": "rslib build -w",
|
|
87
|
-
"reset": "rimraf ./**/node_modules"
|
|
88
|
-
}
|
|
89
|
-
}
|