@modern-js/main-doc 2.58.1 → 2.58.2
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/docs/en/apis/app/hooks/config/icon.mdx +1 -1
- package/docs/en/apis/app/runtime/web-server/unstable_middleware.mdx +2 -2
- package/docs/en/configure/app/tools/esbuild.mdx +1 -1
- package/docs/en/configure/app/tools/swc.mdx +1 -1
- package/docs/en/guides/_meta.json +5 -0
- package/docs/en/guides/rsbuild-plugins/plugin-esbuild.mdx +205 -0
- package/docs/en/guides/rsbuild-plugins/plugin-swc.mdx +356 -0
- package/docs/zh/apis/app/hooks/config/icon.mdx +1 -1
- package/docs/zh/apis/app/runtime/web-server/unstable_middleware.mdx +2 -2
- package/docs/zh/configure/app/tools/esbuild.mdx +1 -1
- package/docs/zh/configure/app/tools/swc.mdx +1 -1
- package/docs/zh/guides/_meta.json +5 -0
- package/docs/zh/guides/rsbuild-plugins/plugin-esbuild.mdx +201 -0
- package/docs/zh/guides/rsbuild-plugins/plugin-swc.mdx +344 -0
- package/package.json +4 -4
- package/rspress.config.ts +2 -2
- package/src/components/ContentCard/index.tsx +1 -1
- package/src/components/FeatureLayout/index.tsx +1 -1
- package/src/components/Footer/index.tsx +2 -2
- package/src/components/ListCard/index.tsx +1 -1
- package/src/components/Sandpack/index.tsx +4 -2
- package/src/components/SecondaryTitle/index.tsx +1 -1
- package/src/i18n/zhCN.ts +1 -1
- package/src/index.ts +0 -1
- package/src/pages/index.tsx +13 -5
- package/src/.eslintrc.json +0 -3
package/src/pages/index.tsx
CHANGED
@@ -56,31 +56,37 @@ export default function Home() {
|
|
56
56
|
|
57
57
|
const features = [
|
58
58
|
{
|
59
|
+
id: 'feature1',
|
59
60
|
title: t('feature1'),
|
60
61
|
href: useUrl('/guides/concept/builder'),
|
61
62
|
desc: t('featureDesc1'),
|
62
63
|
},
|
63
64
|
{
|
65
|
+
id: 'feature2',
|
64
66
|
title: t('feature2'),
|
65
67
|
href: useUrl('/guides/advanced-features/bff/index'),
|
66
68
|
desc: t('featureDesc2'),
|
67
69
|
},
|
68
70
|
{
|
71
|
+
id: 'feature3',
|
69
72
|
title: t('feature3'),
|
70
73
|
href: useUrl('/guides/basic-features/routes'),
|
71
74
|
desc: t('featureDesc3'),
|
72
75
|
},
|
73
76
|
{
|
77
|
+
id: 'feature4',
|
74
78
|
title: t('feature4'),
|
75
79
|
href: useUrl('/guides/advanced-features/ssr'),
|
76
80
|
desc: t('featureDesc4'),
|
77
81
|
},
|
78
82
|
{
|
83
|
+
id: 'feature5',
|
79
84
|
title: t('feature5'),
|
80
85
|
href: useUrl('/guides/basic-features/css'),
|
81
86
|
desc: t('featureDesc5'),
|
82
87
|
},
|
83
88
|
{
|
89
|
+
id: 'feature6',
|
84
90
|
title: t('feature6'),
|
85
91
|
href: useUrl('/configure/app/usage'),
|
86
92
|
desc: t('featureDesc6'),
|
@@ -90,11 +96,13 @@ export default function Home() {
|
|
90
96
|
const lang = useLang();
|
91
97
|
const solutions = [
|
92
98
|
{
|
99
|
+
id: 'framework',
|
93
100
|
title: 'Modern.js Framework',
|
94
101
|
href: useUrl('/guides/get-started/introduction'),
|
95
102
|
desc: t('solutionsDesc1'),
|
96
103
|
},
|
97
104
|
{
|
105
|
+
id: 'module',
|
98
106
|
title: 'Modern.js Module',
|
99
107
|
href: `https://modernjs.dev/module-tools${lang === 'en' ? '/en' : ''}`,
|
100
108
|
desc: t('solutionsDesc2'),
|
@@ -104,7 +112,7 @@ export default function Home() {
|
|
104
112
|
return (
|
105
113
|
<div>
|
106
114
|
<Helmet>
|
107
|
-
<html className="dark"
|
115
|
+
<html className="dark" />
|
108
116
|
<script>window.MODERN_THEME = 'dark';</script>
|
109
117
|
<style type="text/css">{`
|
110
118
|
.rspress-doc-appearance {
|
@@ -117,9 +125,9 @@ export default function Home() {
|
|
117
125
|
<FeatureLayout>
|
118
126
|
<SecondaryTitle>{t('solutions')}</SecondaryTitle>
|
119
127
|
<div className={styles.cardContainer}>
|
120
|
-
{solutions.map(
|
128
|
+
{solutions.map(card => (
|
121
129
|
<ContentCard
|
122
|
-
key={
|
130
|
+
key={card.id}
|
123
131
|
title={card.title}
|
124
132
|
desc={card.desc}
|
125
133
|
href={card.href}
|
@@ -141,9 +149,9 @@ export default function Home() {
|
|
141
149
|
<FeatureLayout>
|
142
150
|
<SecondaryTitle>Modern.js Framework</SecondaryTitle>
|
143
151
|
<div className={styles.cardContainer}>
|
144
|
-
{features.map(
|
152
|
+
{features.map(card => (
|
145
153
|
<ContentCard
|
146
|
-
key={
|
154
|
+
key={card.id}
|
147
155
|
title={card.title}
|
148
156
|
desc={card.desc}
|
149
157
|
href={card.href}
|
package/src/.eslintrc.json
DELETED