Releases: web-infra-dev/rspress
Releases Β· web-infra-dev/rspress
v1.43.6
What's Changed
Bug Fixes π
Document π
- docs: update i18n messages by @chenjiahan in #1958
Other Changes
- Release v1.43.6 by @Timeless0911 in #1977
Full Changelog: v1.43.5...v1.43.6
v1.43.5
What's Changed
Bug Fixes π
- fix: failed to update search index after switching lang (#1950) by @chenjiahan
Other Changes
- Release v1.43.5 by @chenjiahan in #1959
Full Changelog: v1.43.4...v1.43.5
v2.0.0-alpha.3
What's Changed
Breaking Changes π¨
enable search.codeBlocks
by default in local search
related PR: #1952
New Features π
- feat!: enable
search.codeBlocks
by default by @chenjiahan in #1952 - feat(style): add link icon for external links by @chenjiahan in #1964
Bug Fixes π
- fix(deps): update react-helmet-async 2.0.0 by @SoonIter in #1951
- fix(deps): update react-helmet-async 2.0.0(#1951) by @SoonIter in #1953
- fix: improve reported responsive issues by @JounQin in #1956
- fix: overview page overflow by @JounQin in #1960
- fix(style): unset the navItem bg color by @SoonIter in #1966
- fix: update search placeholder text to 'Search' by @chenjiahan in #1965
Document π
- docs: update i18n messages by @chenjiahan in #1958
- docs: add
editLink
andoutline
config by @9aoy in #1969
Other Changes
- chore(deps): update dependency react-helmet-async to v2 by @renovate in #1801
- chore(deps): update dependency qrcode.react to v4 by @renovate in #1786
- chore(deps): update typescript 5.8.2 by @SoonIter in #1954
- chore(deps): update all patch dependencies by @renovate in #1962
- chore(deps): update dependency @microsoft/api-extractor to ^7.52.1 by @renovate in #1963
- Release v2.0.0-alpha.3 by @SoonIter in #1972
Full Changelog: v2.0.0-alpha.2...v2.0.0-alpha.3
v2.0.0-alpha.2
What's Changed
Breaking Changes π¨ and highlights βοΈ
Upgrade shiki V3 and use shiki transformers
related PR: #1672
import { defineConfig } from 'rspress/config';
import { pluginShiki, createTransformerDiff } from '@rspress/plugin-shiki';
+ import {
+ transformerNotationDiff,
+ transformerNotationErrorLevel,
+ transformerNotationFocus,
+ transformerNotationHighlight,
+ } from '@shikijs/transformers';
export default defineConfig({
plugins: [
pluginShiki({
transformers: [
// add as needed
- createTransformerDiff(),
- // createTransformerLineNumber(),
- // createTransformerErrorLevel(),
- // createTransformerHighlight(),
- // createTransformerFocus(),
+ createTransformerLineNumber(),
+ // transformerNotationDiff(),
+ // transformerNotationErrorLevel(),
+ // transformerNotationHighlight(),
+ // transformerNotationFocus(),
],
}),
],
});
Support algolia search by "@rspress/plugin-algolia"
related PR: #1909
Installation
npm add @rspress/plugin-algolia -D
Usage
// rspress.config.ts
import path from 'path';
import { defineConfig } from 'rspress';
import { pluginAlgolia } from '@rspress/plugin-algolia';
export default defineConfig({
plugins: [pluginAlgolia()],
});
// theme/index.tsx
import { Search as PluginAlgoliaSearch } from '@rspress/plugin-algolia/runtime';
const Search = () => {
return (
<PluginAlgoliaSearch
docSearchProps={{
appId: 'R2IYF7ETH7', // Replace with your own Algolia appId
apiKey: '599cec31baffa4868cae4e79f180729b', // Replace with your own Algolia apiKey
indexName: 'docsearch', // Replace with your own Algolia indexName
}}
/>
);
};
export { Search };
export * from 'rspress/theme';
Builtin Sass and Less plugins removed
related PR: #1937
Rspress 2.0 no longer has Rsbuild's Less and Sass plugins built into it. You can manually install and register plugins to support Sass and Less.
- Sass:
// rspress.config.ts
import { defineConfig } from 'rspress/config';
import { pluginSass } from '@rsbuild/plugin-sass';
export default defineConfig({
builderPlugins: [pluginSass()],
});
- Less:
// rspress.config.ts
import { defineConfig } from 'rspress/config';
import { pluginLess } from '@rsbuild/plugin-less';
export default defineConfig({
builderPlugins: [pluginLess()],
});
New Features π
- feat!(plugin-shiki): bump shiki to v3, migrate to official transformers by @JounQin in #1672
- feat: expose builder preview result for programming usage by @JounQin in #1944
- feat(plugin-algolia): add plugin-algolia and optimize some DX on customizing Search by @SoonIter in #1909
Bug Fixes π
- fix: remove async fs to avoid empty global style by @SoonIter in #1934
- fix: rework sidebar menu responsive issues by @JounQin in #1928
- fix(cli): should catch build errors by @chenjiahan in #1938
- fix(mdxjs): not need to add base on normalizing links with base enabled by @JounQin in #1943
- fix!: remove the builtin Sass and Less plugins by @chenjiahan in #1937
- fix(core): memfs should be dev dependency by @chenjiahan in #1946
- fix(theme): unset overflow style when sidebar destroy by @quanquan2100 in #1949
- fix: failed to update search index after switching lang by @chenjiahan in #1950
Other Changes
- chore(theme): replace with <></>, rename
SideMenu
toSidebarMenu
by @SoonIter in #1932 - Release v2.0.0-alpha.2 by @SoonIter in #1947
New Contributors
- @quanquan2100 made their first contribution in #1949
Full Changelog: v2.0.0-alpha.1...v2.0.0-alpha.2
v1.43.4
v1.43.3
v2.0.0-alpha.1
What's Changed
Bug Fixes π
- fix: remove outdated hero default values by @chenjiahan in #1927
- fix: Revert "fix: display outline correctly on >=960px <=1280px screen width (#1914)" by @SoonIter in #1929
Other Changes
- chore(plugin-algolia): correct peer dependency version by @chenjiahan in #1925
- chore: use pnpm instead of npx by @JounQin in #1921
- chore(deps): update dependency @rsbuild/core to v1.2.16 by @renovate in #1926
- Release v2.0.0-alpha.1 by @SoonIter in #1931
Full Changelog: v2.0.0-alpha.0...v2.0.0-alpha.1
v1.43.2
v2.0.0-alpha.0
What's Changed
Breaking Changes π¨
-
Use named export instead of default export in customizing theme (#1873)
If you want to customize theme, please use named export as below:
before
Layout
HomeLayout
setup
DocLayout
use default export,other components use named export
import Theme from 'rspress/theme'; const Layout = () => <Theme.Layout beforeNavTitle={<div>some content</div>} />; export default { ...Theme, Layout, }; export * from 'rspress/theme';
after
all the components use named export
import { Layout as BasicLayout } from 'rspress/theme'; const Layout = () => <BasicLayout beforeNavTitle={<div>some content</div>} />; // use named export, no need to `export default` export { Layout }; export * from 'rspress/theme';
New Features π
- feat(nav): improve dropdown menu interaction by @chenjiahan in #1910
- feat(theme)!: use named export instead of default export, for circular imports by @SoonIter in #1873
Performance π
- perf(search): add index async to avoid blocking the main thread by @chenjiahan in #1892
- perf(search): remove group calculation by @chenjiahan in #1893
- perf: use
matchPath
rather thanmatchRoutes
, remove unused group.title by @SoonIter in #1895 - perf(search): improve initialization and prefetching logic by @chenjiahan in #1899
Bug Fixes π
- fix(plugin-api-docgen): add Russian support by @liamli-0822 in #1890
- fix(search): should use
index.searchAsync
by @chenjiahan in #1898 - fix: display outline correctly on >=960px <=1280px screen width by @JounQin in #1914
Document π
- docs: improve Rsbuild plugin guides by @chenjiahan in #1900
- docs: enhance runtime API with types and dark mode usages by @chenjiahan in #1906
- docs: replace generic framework references with Rspress by @chenjiahan in #1907
Other Changes
- chore(deps): update dependency rimraf to v6 by @renovate in #1804
- chore(deps): update all patch dependencies by @renovate in #1902
- chore(deps): update dependency @changesets/cli to ^2.28.1 by @renovate in #1903
- chore(deps): update dependency @microsoft/api-extractor to ^7.51.1 by @renovate in #1904
- chore(deps): update all patch dependencies by @renovate in #1908
- Release v2.0.0-alpha.0 by @SoonIter in #1917
New Contributors
- @liamli-0822 made their first contribution in #1890
Full Changelog: v1.43.0...v2.0.0-alpha.0
v1.43.1
What's Changed
Bug Fixes π
- fix: display outline correctly on >=960px <=1280px screen width by @JounQin in #1918
- fix(plugin-api-docgen): add Russian support (by @liamli-0822 #1890) cherry-picked by @SoonIter in #1919
Other Changes
- chore: update workflows to support 1.x branch by @chenjiahan in #1913
- Release v1.43.1 by @SoonIter in #1920
Full Changelog: v1.43.0...v1.43.1