chore(deps): update rspress packages to v2.0.0-rc.5 #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.0-beta.35→2.0.0-rc.52.0.0-beta.35→2.0.0-rc.52.0.0-beta.35→2.0.0-rc.52.0.0-beta.35→2.0.0-rc.5Release Notes
web-infra-dev/rspress (@rspress/core)
v2.0.0-rc.5Compare Source
What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes
Full Changelog: web-infra-dev/rspress@v2.0.0-rc.4...v2.0.0-rc.5
v2.0.0-rc.4Compare Source
What's Changed
New Features 🎉
node >= 20.9.0by @SoonIter in #2924Bug Fixes 🐞
Iterator#mapis only available on Node 22+ by @JounQin in #2923beforeNavMenucorrectly by @JounQin in #2822Document 📖
Other Changes
Full Changelog: web-infra-dev/rspress@v2.0.0-rc.3...v2.0.0-rc.4
v2.0.0-rc.3Compare Source
Highlights ✨
🆕️ Support common tags
You can use it in the frontmatter, and it also supports customization:
🌏 Enable
text-autospace: normal;by defaultThe text-autospace CSS property allows you to specify the space applied between Chinese/Japanese/Korean (CJK) and non-CJK characters.
What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes
Full Changelog: web-infra-dev/rspress@v2.0.0-rc.2...v2.0.0-rc.3
v2.0.0-rc.2Compare Source
Breaking Changes🚨
themefolder should use@rspress/core/theme-originalIn Rspress V1 document,
@themeis the alias forrspress/theme, but@themeis an alias which points totheme/index.tsxand falls back torspress/theme.rspress/themeor@rspress/core/themepoints to Rspress'stheme-default, they are actually different things.We standardize this behavior, which is the same as docusaurus.
In
docsdirectory,@themeor@rspress/core/themeshould be used, which points totheme/index.tsxand falls back totheme-defaultIn
themedirectory ,@theme-originalor@rspress/core/theme-originalshould be used, which always points to Rspress'stheme-default, used for users to customize themes, which is very useful for users who publish npm theme packages.Merge
@theme-assetsto@themeBefore
We have a separate entry for exporting @theme-assets
After
@theme-assetshas been removed. Icons are exported from@themeand prefixed withIcon, for example:IconSearchRefactor
@rspress/plugin-previewand simplify usageBefore: Required declarations in both config file and MDX file.
After: Only declare in the MDX file.
What's Changed
New Features 🎉
tsx preview="iframe-fixed"and support hmr by @SoonIter in #2806<root>/prefix in remarkFileCodeBlock by @Copilot in #2665@rspress/core/theme-originalby @SoonIter in #2860Performance 🚀
Bug Fixes 🐞
onClickprop by @JounQin in #2811progressiveChunkSizechange by @SoonIter in #2831Document 📖
Other Changes
34e1148by @renovate[bot] in #2798redirect.dts.extensionto fix type issue by @Timeless0911 in #2814FallbackHeadingfor reusing by @JounQin in #2813New Contributors
Full Changelog: web-infra-dev/rspress@v2.0.0-rc.1...v2.0.0-rc.2
v2.0.0-rc.1Compare Source
What's Changed
New Features 🎉
Bug Fixes 🐞
Other Changes
Full Changelog: web-infra-dev/rspress@v2.0.0-rc.0...v2.0.0-rc.1
v2.0.0-rc.0Compare Source
Highlights ✨
💄 Brand new theme
1. BEM classname 🕶
All built-in components now adopt BEM naming. This is a rather old-school choice, but a deliberate one based on user feedback.
Compared with Tailwind CSS, it allows you to flexibly adjust styles anywhere using standard CSS selectors, without restrictions.
For user-side customized doc components, you are free to choose any styling approach — including Tailwind CSS — without worrying about conflicts with Rspress’s default styles.
2. Built-in Default i18n Text 🌏
The new theme includes a set of default translation strings and supports "treeshaking" based on the languages configured in your project:
If your documentation includes only en and zh, only those languages will be bundled.
For languages not supported by Rspress, it automatically falls back to en.
In most cases, you barely need to configure any i18n text manually, which significantly improves usability. You only need to configure i18nSource in rspress.config.ts when a language is missing or when you want to override built-in texts.
In 2.0.0-rc.0, based on contributions from the community, Rspress now includes four built-in languages: zh, en, ja, and ko.
Welcome more contributors to help improve and expand the default language texts.
More info: https://redirect.github.com/web-infra-dev/rspress/discussions/1891#discussioncomment-14933678
3. More CSS Variables 💄
Rspress now exposes additional CSS variables covering theme colors, shiki, code blocks, the homepage, and more — greatly enhancing customization capabilities.
You can experiment with them interactively at https://v2.rspress.rs/ui/vars, preview the results in real time, and copy the variables directly into your project.
4.
rspress eject🆕rspress ejectis a brand-new CLI command that copies the source code of Rspress’s built-in components into your project’s theme/components directory.For example:
rspress eject DocFooterThis gives you the full source of the DocFooter component, enabling you to customize it freely, such as adding license information.
The
rspress ejectfeature is still in testing, and we’ll continue improving the documentation and providing more good customization examples.5. Improved Documentation Reading Experience 📖
Most colors and visual styles have been redesigned and refined by our designers, significantly enhancing the overall visual appeal and reading experience.
What's Changed
New Features 🎉
.rp-doc-outlinetorp-toc-includeby @SoonIter in #2656cacheoptions by @Timeless0911 in #2712config.i18nSourceand default i18n text and remove serveral i18nKeys in themeConfig by @SoonIter in #2738'''tsx lineNumbers wrapCodeby @Copilot in #2746rspress ejectCLI command for theme component customization by @Copilot in #2726Performance 🚀
Bug Fixes 🐞
Document 📖
Other Changes
@rspress/theme-defaultto@rspress/core/themeby @SoonIter in #2690Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.