Skip to content

Commit 602780c

Browse files
committed
chore: upgrade @rspress/core
1 parent 1048363 commit 602780c

21 files changed

Lines changed: 313 additions & 496 deletions

packages/document/docs/en/guide/rules/rule-custom.mdx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ When writing custom rules, in addition to installing the basic `@rsdoctor/rspack
7272

7373
import { PackageManagerTabs } from '@theme';
7474

75-
import { Tab, Tabs } from 'rspress/theme';
75+
import { Tab, Tabs } from '@rspress/core/theme';
7676

7777
<PackageManagerTabs command="add @rsdoctor/core -D" />
7878

@@ -199,19 +199,15 @@ At the same time, Rsdoctor also has two components that can be used to display r
199199
[LinkRule Type](#linkrulestoredata)
200200

201201
- Component Input
202-
203202
- type
204-
205203
- The type of the component.
206204
- value: 'link'.
207205

208206
- title
209-
210207
- The title of the rule.
211208
- type: string.
212209

213210
- description
214-
215211
- The description of the rule. The data comes from the `message` or `detail.description` in the `report` function:
216212
```js
217213
report({
@@ -225,7 +221,6 @@ At the same time, Rsdoctor also has two components that can be used to display r
225221
- type: string.
226222

227223
- level
228-
229224
- The level of the rule.
230225
- type: warn | error.
231226

@@ -266,19 +261,15 @@ report({
266261
[CodeViewRule Type](#codeviewrule)
267262

268263
- Component Input
269-
270264
- type
271-
272265
- The type of the component.
273266
- value: 'code-view'.
274267

275268
- title
276-
277269
- The title of the rule.
278270
- type: string.
279271

280272
- description
281-
282273
- The description of the rule. The data comes from the `message` or `detail.description` in the `report` function:
283274
```js
284275
report({
@@ -292,7 +283,6 @@ report({
292283
- type: string.
293284

294285
- level
295-
296286
- The level of the rule.
297287
- type: warn | error.
298288

packages/document/docs/en/guide/start/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ We provide `@rsdoctor/cli` for you to use Rsdoctor's features locally through th
1717

1818
import { PackageManagerTabs } from '@theme';
1919

20-
import { Tab, Tabs } from 'rspress/theme';
20+
import { Tab, Tabs } from '@rspress/core/theme';
2121

2222
<PackageManagerTabs command="add @rsdoctor/cli -D" />
2323

packages/document/docs/en/guide/start/quick-start-shared.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ For projects using Modern.js's webpack mode, please register the `RsdoctorWebpac
8484

8585
Initialize the [RsdoctorRspackPlugin](#rspack-projects)([RsdoctorWebpackPlugin](#webpack-projects)) plugin in the [Rspack Config](https://rspack.rs/guide/tech/next)([webpack config](https://nextjs.org/docs/pages/api-reference/config/next-config-js/webpack)) of `next.config.ts`.
8686

87-
import { Tab, Tabs } from 'rspress/theme';
87+
import { Tab, Tabs } from '@rspress/core/theme';
8888

8989
<Tabs>
9090

packages/document/docs/en/guide/usage/module-analysis.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ The `Reasons Tree` displays the dependency chain of this `Module`, showing which
4646
- The `Usage` tag displays the purpose of various module tags.
4747

4848
- The `Concatenated` tag:
49-
5049
- The `Concatenated` tag indicates that the module is a concatenated sub-module. Hover over it to see which main module it is aggregated into. This type of aggregated module cannot be further unpacked, so the specific `Bundled Size` cannot be determined, only the size of the entire concatenated module can be known.
51-
- Glossary: A **concatenated module** is when multiple modules are promoted or **concatenated into a closure** during packaging. For an explanation of `Concatenated Module`, refer to the [Glossary](guide/usage/bundle-size#glossary).
50+
- Glossary: A **concatenated module** is when multiple modules are promoted or **concatenated into a closure** during packaging. For an explanation of `Concatenated Module`, refer to the [Glossary](/guide/usage/bundle-size#glossary).
5251

5352
- The `!` tag, hover over it to display the detailed path of the module.
5453

packages/document/docs/zh/guide/rules/rule-custom.mdx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default {
7373

7474
import { PackageManagerTabs } from '@theme';
7575

76-
import { Tab, Tabs } from 'rspress/theme';
76+
import { Tab, Tabs } from '@rspress/core/theme';
7777

7878
<PackageManagerTabs command="add @rsdoctor/core -D" />
7979

@@ -200,19 +200,15 @@ const CheckRule = defineRule<typeof ruleTitle, config>(() => ({
200200
[LinkRule Type](#linkrulestoredata)
201201

202202
- 组件输入
203-
204203
- type
205-
206204
- 使用组件类型。
207205
- value: 'link'。
208206

209207
- title
210-
211208
- 规则标题。
212209
- type: string。
213210

214211
- description
215-
216212
- 规则描述。数据来源为 report 中的 message 或 detail.description:
217213
```js
218214
report({
@@ -226,7 +222,6 @@ const CheckRule = defineRule<typeof ruleTitle, config>(() => ({
226222
- type: string。
227223

228224
- level
229-
230225
- 规则级别。
231226
- type:warn | error。
232227

@@ -267,19 +262,15 @@ report({
267262
[CodeViewRule Type](#codeviewrule)
268263

269264
- 组件输入
270-
271265
- type
272-
273266
- 使用组件类型。
274267
- value: 'code-view'。
275268

276269
- title
277-
278270
- 规则标题。
279271
- type: string。
280272

281273
- description
282-
283274
- 规则描述。数据来源为 report 中的 message 或 detail.description:
284275
```js
285276
report({
@@ -293,7 +284,6 @@ report({
293284
- type: string。
294285

295286
- level
296-
297287
- 规则级别。
298288
- type:warn | error。
299289

packages/document/docs/zh/guide/start/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import { PackageManagerTabs } from '@theme';
1919

20-
import { Tab, Tabs } from 'rspress/theme';
20+
import { Tab, Tabs } from '@rspress/core/theme';
2121

2222
<PackageManagerTabs command="add @rsdoctor/cli -D" />
2323

packages/document/docs/zh/guide/start/quick-start-shared.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default {
8484

8585
`next.config.ts`[Rspack 配置](https://rspack.rs/guide/tech/next)([webpack 配置](https://nextjs.org/docs/pages/api-reference/config/next-config-js/webpack)) 中初始化 [RsdoctorRspackPlugin](#rspack-%E9%A1%B9%E7%9B%AE)[RsdoctorWebpackPlugin](#webpack-%E9%A1%B9%E7%9B%AE)) 插件。
8686

87-
import { Tab, Tabs } from 'rspress/theme';
87+
import { Tab, Tabs } from '@rspress/core/theme';
8888

8989
<Tabs>
9090
<Tab label="Rspack">

packages/document/docs/zh/guide/usage/module-analysis.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848
- `Usage` 标签会展示各种模块标签的作用。
4949

5050
- `Concatenated`标签:
51-
5251
- `Concatenated` 标签标识该模块是被串联的子模块,`hover` 上去就可以看到被聚合到了哪个主模块中。这种聚合模块无法继续拆解打包后的代码,因此无法得知具体的 `Bundled Size`,只能得知整个串联模块的大小。
53-
- 名词解释:串联模块是将多个模块在打包时提升或串联到一个闭包中。 `Concatenated Module` 的解释可以查看[名词解释](guide/usage/bundle-size#%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A)
52+
- 名词解释:串联模块是将多个模块在打包时提升或串联到一个闭包中。 `Concatenated Module` 的解释可以查看[名词解释](/guide/usage/bundle-size#%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A)
5453

5554
- `!` 标签,`hover` 上去可以展示模块详细路径.
5655

0 commit comments

Comments
 (0)