Skip to content

Commit 9a3b776

Browse files
authored
chore: upgrade Rspress v2.1.1 and use built-in Shiki transformers (#622)
1 parent 86b4d30 commit 9a3b776

4 files changed

Lines changed: 31 additions & 50 deletions

File tree

‎pnpm-lock.yaml‎

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

‎pnpm-workspace.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ catalog:
2020
'@rsbuild/plugin-sass': '^2.0.1'
2121
'@rslib/core': '~1.0.5'
2222
'@rslint/core': '0.10.0'
23-
'@rspress/core': '2.1.0'
24-
'@rspress/plugin-client-redirects': '2.1.0'
23+
'@rspress/core': '2.1.1'
24+
'@rspress/plugin-client-redirects': '2.1.1'
2525
'@rstackjs/doc-ui': '1.14.11'
2626
'@rstackjs/create-toolkit': '2.2.11'
2727
'@rstackjs/load-config': ^1.0.2
@@ -37,7 +37,6 @@ catalog:
3737
'@types/node': '^26.6.6'
3838
'@types/react': '^19.3.0'
3939
'@types/react-dom': '^19.3.0'
40-
'@shikijs/transformers': '^4.6.0'
4140
'cspell-ban-words': '^0.0.4'
4241
'fast-json-stable-stringify': '2.1.0'
4342
'happy-dom': '^21.0.4'

‎website/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"@rspress/core": "catalog:",
1414
"@rspress/plugin-client-redirects": "catalog:",
1515
"@rstackjs/doc-ui": "catalog:",
16-
"@shikijs/transformers": "catalog:",
1716
"@types/node": "catalog:",
1817
"@types/react": "catalog:",
1918
"@types/react-dom": "catalog:",

‎website/rstack.config.ts‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
import { pluginSass } from '@rsbuild/plugin-sass';
33
import type { UserConfig } from '@rspress/core';
44
import { pluginClientRedirects } from '@rspress/plugin-client-redirects';
5-
import {
6-
transformerNotationDiff,
7-
transformerNotationFocus,
8-
transformerNotationHighlight,
9-
} from '@shikijs/transformers';
105
import path from 'node:path';
116
import { define } from 'rstack';
127
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
@@ -38,13 +33,6 @@ define.doc({
3833
checkAnchors: true,
3934
checkDeadLinks: true,
4035
},
41-
shiki: {
42-
transformers: [
43-
transformerNotationDiff(),
44-
transformerNotationHighlight(),
45-
transformerNotationFocus(),
46-
],
47-
},
4836
},
4937
route: {
5038
cleanUrls: true,

0 commit comments

Comments
 (0)