Skip to content

Commit 34eea11

Browse files
authored
feat: bump rspress to v2.0.0-beta.21 (#123)
1 parent ee8c416 commit 34eea11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1299
-1254
lines changed

.changeset/perfect-rings-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alauda/doom": minor
3+
---
4+
5+
feat: bump `rspress` to `v2.0.0-beta.21`

docs/en/usage/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Please use `public/robots.txt` for Algolia crawler verification.
265265

266266
Due to current architectural limitations of `rspress`, Algolia search functionality must be implemented via [custom themes](https://rspress.dev/zh/guide/advanced/custom-theme). To unify the use of related theme features, we provide the `@alauda/doom/theme` theme entry. Please add the following theme configuration file to enable:
267267

268-
```ts title "theme/index.ts"
268+
```ts title="theme/index.ts"
269269
export * from '@alauda/doom/theme'
270270
```
271271

docs/en/usage/mdx.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ The `rspress` theme provides a majority of the [built-in components](https://rsp
2020
- `Tab/Tabs`
2121
- `Toc`
2222

23-
Other less frequently used components can be imported from `@rspress/core/theme`, for example:
23+
Other less frequently used components can be imported from `rspress/theme`, for example:
2424

2525
```mdx title="preview.mdx"
26-
import { SourceCode } from '@rspress/core/theme'
26+
import { SourceCode } from 'rspress/theme'
2727

2828
<SourceCode href="/" />
2929
```

docs/zh/usage/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ algolia: # 可选,Algolia 搜索配置,仅当启用 `-a, --algolia` 命令
264264

265265
由于 `rspress` 当前架构限制,使用 Algolia 搜索功能需通过[自定义主题](https://rspress.dev/zh/guide/advanced/custom-theme) 实现,因此为统一使用相关主题功能,我们提供了 `@alauda/doom/theme` 主题入口,请添加以下主题配置文件启用:
266266

267-
```ts title "theme/index.ts"
267+
```ts title="theme/index.ts"
268268
export * from '@alauda/doom/theme'
269269
```
270270

docs/zh/usage/mdx.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ weight: 3
1919
- `Tab/Tabs`
2020
- `Toc`
2121

22-
其他不常用的组件可以通过 `@rspress/core/theme` 导入使用,例如:
22+
其他不常用的组件可以通过 `rspress/theme` 导入使用,例如:
2323

2424
```mdx title="preview.mdx"
25-
import { SourceCode } from '@rspress/core/theme'
25+
import { SourceCode } from 'rspress/theme'
2626

2727
<SourceCode href="/" />
2828
```

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import doom from '@alauda/doom/eslint'
1212

1313
export default config(
1414
{
15-
ignores: ['pyodide'],
15+
ignores: ['dist', 'lib', 'pyodide'],
1616
},
1717
...(await doom(new URL('docs', import.meta.url))),
1818
eslint.configs.recommended,

fixture-docs/en/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { useI18n } from '@rspress/core/runtime'
1+
import { useI18n } from 'rspress/runtime'
22

33
# {useI18n()('prod_intro')} \{#prod_intro_i18n\}
44

5-
<Term name="company" /> <Term name="product" /> <Term name="productShort" />
5+
## <Term name="company" /> <Term name="product" /> <Term name="productShort" />
66

77
The following specifications must be followed during the internationalization translation process:
88

fixture-docs/ru/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sourceSHA: 7f15c9e90978c98f9621efe840a5f243bd12b7c53b495af9b5a0c03fdd349e91
33
---
44

5-
import { useI18n } from '@rspress/core/runtime'
5+
import { useI18n } from 'rspress/runtime'
66

77
# {useI18n()('prod_intro')} \{#prod_intro_i18n}
88

fixture-docs/zh/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sourceSHA: 7f15c9e90978c98f9621efe840a5f243bd12b7c53b495af9b5a0c03fdd349e91
33
---
44

5-
import { useI18n } from '@rspress/core/runtime'
5+
import { useI18n } from 'rspress/runtime'
66

77
# {useI18n()('prod_intro')} \{#prod_intro_i18n}
88

package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,27 @@
5858
"version": "changeset version && yarn --no-immutable"
5959
},
6060
"dependencies": {
61-
"@cspell/eslint-plugin": "^8.19.4 || ^9.1.3",
62-
"@eslint-react/eslint-plugin": "^1.52.2",
61+
"@cspell/eslint-plugin": "^8.19.4 || ^9.1.5",
62+
"@eslint-react/eslint-plugin": "^1.52.3",
6363
"@inquirer/prompts": "^7.6.0",
6464
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
65-
"@playwright/browser-chromium": "^1.53.2",
65+
"@playwright/browser-chromium": "^1.54.1",
6666
"@rsbuild/plugin-react": "^1.3.4",
6767
"@rsbuild/plugin-sass": "^1.3.3",
6868
"@rsbuild/plugin-svgr": "^1.2.1",
6969
"@rsbuild/plugin-yaml": "^1.0.2",
70-
"@rspress/core": "2.0.0-beta.20",
71-
"@rspress/plugin-algolia": "2.0.0-beta.20",
72-
"@rspress/plugin-llms": "2.0.0-beta.20",
73-
"@shikijs/transformers": "^3.7.0",
70+
"@rspress/plugin-algolia": "2.0.0-beta.21",
71+
"@rspress/plugin-llms": "2.0.0-beta.21",
72+
"@rspress/shared": "2.0.0-beta.21",
73+
"@shikijs/transformers": "^3.8.0",
7474
"@total-typescript/ts-reset": "^0.6.1",
7575
"chokidar": "^4.0.3",
7676
"cli-progress": "^3.12.0",
7777
"clsx": "^2.1.1",
7878
"commander": "^13.1.0 || ^14.0.0",
7979
"ejs": "^3.1.10",
8080
"es-toolkit": "^1.39.7",
81-
"eslint": "^9.30.1",
81+
"eslint": "^9.31.0",
8282
"eslint-plugin-mdx": "^3.6.2",
8383
"globals": "^16.3.0",
8484
"html-tag-names": "^2.1.0",
@@ -88,13 +88,13 @@
8888
"mdast-util-phrasing": "^4.1.0",
8989
"mdast-util-to-string": "^4.0.0",
9090
"mermaid": "^11.8.1",
91-
"openai": "^5.8.3",
91+
"openai": "^5.9.2",
9292
"openapi-types": "^12.1.3",
9393
"p-ratelimit": "^1.0.1",
9494
"pdf-lib": "^1.17.1",
9595
"pdf-merger-js": "^5.1.2",
96-
"picomatch": "^4.0.2",
97-
"playwright": "^1.53.2",
96+
"picomatch": "^4.0.3",
97+
"playwright": "^1.54.1",
9898
"pluralize": "^8.0.0",
9999
"react-markdown": "^10.1.0",
100100
"rehype-raw": "^7.0.0",
@@ -114,14 +114,15 @@
114114
"remark-mdx": "^3.1.0",
115115
"remark-message-control": "^8.0.0",
116116
"remark-stringify": "^11.0.0",
117-
"shiki": "^3.7.0",
117+
"rspress": "2.0.0-beta.21",
118+
"shiki": "^3.8.0",
118119
"simple-git": "^3.28.0",
119120
"string-width": "^7.2.0",
120121
"swagger2openapi": "^7.0.8",
121122
"tinyglobby": "^0.2.14",
122123
"type-fest": "^4.41.0",
123124
"typescript": "^5.8.3",
124-
"typescript-eslint": "^8.36.0",
125+
"typescript-eslint": "^8.37.0",
125126
"unified": "^11.0.5",
126127
"unified-lint-rule": "^3.0.1",
127128
"unist-util-position": "^5.0.0",
@@ -133,13 +134,13 @@
133134
"devDependencies": {
134135
"@changesets/changelog-github": "^0.5.1",
135136
"@changesets/cli": "^2.29.5",
136-
"@eslint/js": "^9.30.1",
137+
"@eslint/js": "^9.31.0",
137138
"@swc-node/register": "^1.10.10",
138-
"@swc/core": "1.12.11",
139+
"@swc/core": "1.12.14",
139140
"@types/cli-progress": "^3.11.6",
140141
"@types/ejs": "^3.1.5",
141142
"@types/mdast": "^4.0.4",
142-
"@types/node": "^22.16.2",
143+
"@types/node": "^22.16.4",
143144
"@types/picomatch": "^4.0.0",
144145
"@types/pluralize": "^0.0.33",
145146
"@types/react": "^19.1.8",
@@ -154,7 +155,7 @@
154155
"nano-staged": "^0.8.0",
155156
"npm-run-all2": "^8.0.4",
156157
"prettier": "^3.6.2",
157-
"prettier-plugin-pkg": "^0.21.1",
158+
"prettier-plugin-pkg": "^0.21.2",
158159
"prettier-plugin-properties": "^0.3.0",
159160
"simple-git-hooks": "^2.13.0",
160161
"type-coverage": "^2.29.7",

0 commit comments

Comments
 (0)