Skip to content

Commit c8a4e87

Browse files
authored
docs: add Rstest to homepage (#997)
1 parent fb0b8b9 commit c8a4e87

File tree

4 files changed

+21
-43
lines changed

4 files changed

+21
-43
lines changed

pnpm-lock.yaml

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/i18n.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,5 @@
1414
"slogan": {
1515
"en": "Create JavaScript libraries in a simple and intuitive way",
1616
"zh": "以简单直观的方式创建 JavaScript 库"
17-
},
18-
"toolStackTitle": {
19-
"en": "Tool Stack",
20-
"zh": "工具栈"
21-
},
22-
"toolStackDesc": {
23-
"en": "High-performance tool stack built around Rspack to boost modern web development",
24-
"zh": "围绕 Rspack 打造的高性能工具栈,助力现代 Web 开发"
2517
}
2618
}

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@rslib/tsconfig": "workspace:*",
1515
"@rspress/plugin-llms": "2.0.0-beta.5",
1616
"@rspress/plugin-rss": "2.0.0-beta.5",
17-
"@rstack-dev/doc-ui": "1.8.0",
17+
"@rstack-dev/doc-ui": "1.9.0",
1818
"@shikijs/transformers": "^3.4.0",
1919
"@types/node": "^22.8.1",
2020
"@types/react": "^19.1.3",
Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
import {
2-
containerStyle,
3-
descStyle,
4-
innerContainerStyle,
5-
titleAndDescStyle,
6-
titleStyle,
7-
} from '@rstack-dev/doc-ui/section-style';
1+
import { containerStyle } from '@rstack-dev/doc-ui/section-style';
82
import { ToolStack as BaseToolStack } from '@rstack-dev/doc-ui/tool-stack';
93
import { useLang } from 'rspress/runtime';
10-
import { useI18n } from 'rspress/runtime';
114

125
export function ToolStack() {
13-
const t = useI18n<typeof import('i18n')>();
146
const lang = useLang();
157
return (
168
<section className={containerStyle}>
17-
<div className={innerContainerStyle}>
18-
<div className={titleAndDescStyle}>
19-
<h1 className={titleStyle}>{t('toolStackTitle')}</h1>
20-
<p className={descStyle}>{t('toolStackDesc')}</p>
21-
</div>
22-
<BaseToolStack lang={lang} />
23-
</div>
9+
<BaseToolStack lang={lang} />
2410
</section>
2511
);
2612
}

0 commit comments

Comments
 (0)