Skip to content

Commit b104095

Browse files
authored
docs: display GitHub button on homepage (#9261)
1 parent 1875e86 commit b104095

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

pnpm-lock.yaml

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

website/docs/en/misc/planning/roadmap.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ At ByteDance, we have experimentally supported RSC ([React Server Components](ht
6060

6161
Currently, when Rspack processes TypeScript modules, it first converts them to JavaScript through a loader before further processing. This provides flexibility but also hinders further optimization of the build output. For example, developers need to use `enum` instead of `const enum`, but `enum` is difficult to optimize as a constant. In the future, we plan to treat TypeScript as a first-class citizen in Rspack, leveraging TypeScript's static information to provide more advanced compile-time optimization of the build output (such as [type-based property renaming](https://github.com/google/closure-compiler/wiki/Type-Based-Property-Renaming)).
6262

63-
### Continuously improving performance
63+
## Continuously improving performance
6464

6565
Performance is the core selling point and focus of Rspack development. In the future we'll explore higher-performance concurrent/multi-core-friendly algorithms, higher-performance caching solutions, higher-performance plugin communication solutions, etc.
6666

67-
### Expanding the test suite
67+
## Expanding the test suite
6868

6969
Today Rspack is primarily tested using a subset of webpack's test cases. In the future, we'll cover more of these tests, while also expanding the test suite and including community projects to ensure compatibility across Rspack releases.
7070

71-
### Collaboration with community partners
71+
## Collaboration with community partners
7272

7373
We are very willing to provide support to framework teams and toolchains within the community to unleash the true performance advantages of Rspack. If your framework or toolchain has a demand for high-performance build engines, let us know!

website/docs/zh/misc/planning/roadmap.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ ESM 是 JavaScript 模块的标准,目前,我们正在改进 Rspack 和 webp
6060

6161
目前 Rspack 在处理 TypeScript 模块时,会先通过 loader 将其转换为 JavaScript 再处理。这虽然提供了充足的灵活性,但是也阻碍了进一步的产物优化。 例如,开发者需要使用 `enum` 替代 `const enum`,但是 `enum` 本身难以进行常量优化,未来我们考虑重新将 TypeScript 作为 Rspack 的一等公民,充分利用 TypeScript 的静态信息,提供更高级的编译产物优化(如 [基于 type 的 property renaming](https://github.com/google/closure-compiler/wiki/Type-Based-Property-Renaming))。
6262

63-
### 持续提升性能
63+
## 持续提升性能
6464

6565
性能是 Rspack 的核心卖点,所以在未来我们会持续地对 Rspack 进行性能优化,提升 Rspack 的性能。如探索更高性能的并发/多核友好的算法,探索更高性能的缓存方案,探索更高性能的插件通信方案等等。
6666

67-
### 建设完善的质量保障体系
67+
## 建设完善的质量保障体系
6868

6969
Rspack 复用了 webpack 的测试用例,未来我们会覆盖更多的 webpack 的测试用例,同时建设完善的 CI 体系,持续提升测试覆盖率,与社区项目共建 Ecosystem CI,避免 Rspack 的升级对上游项目造成 break,保障项目长期健康发展。
7070

71-
### 和社区的伙伴合作
71+
## 和社区的伙伴合作
7272

7373
Rspack 作为一个底层依赖,解决了我们在工作中遇到的很多问题,相信它也可以帮助社区解决一些问题。我们非常期待能与社区内的框架团队深入合作,让大家发挥出 Rspack 真正的性能优势。如果你的框架或者工具链对高性能构建引擎有需求,欢迎联系我们来获得更好的支持。

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"license": "MIT",
2020
"dependencies": {
21-
"@rstack-dev/doc-ui": "1.6.0",
21+
"@rstack-dev/doc-ui": "1.7.1",
2222
"antd": "5.23.4",
2323
"axios": "^1.6.1",
2424
"markdown-to-jsx": "^7.2.1",

website/theme/components/Landingpage/Hero/index.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,19 @@ const Hero = memo(() => {
88
const t = useI18n();
99

1010
const navigate = useNavigate();
11-
const handleClickGetStarted = useCallback(() => {
11+
const onClickGetStarted = useCallback(() => {
1212
navigate(tUrl('/guide/start/quick-start'));
1313
}, [tUrl, navigate]);
1414

15-
const handleClickLearnMore = useCallback(() => {
16-
navigate(tUrl('/guide/start/introduction'));
17-
}, [tUrl, navigate]);
18-
1915
return (
2016
<BaseHero
2117
showStars
2218
title="Rspack"
2319
subTitle={t('heroSlogan')}
2420
description={t('heroSubSlogan')}
2521
getStartedButtonText={t('getStarted')}
26-
learnMoreButtonText={t('learnMore')}
27-
onClickGetStarted={handleClickGetStarted}
28-
onClickLearnMore={handleClickLearnMore}
22+
githubURL="https://github.com/web-infra-dev/rspack"
23+
onClickGetStarted={onClickGetStarted}
2924
/>
3025
);
3126
});

0 commit comments

Comments
 (0)