Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@actions/core": "^1.11.1",
"@lynx-js/react": "^0.114.0",
"@lynx-js/rspeedy": "^0.11.0",
"@lynx-js/rspeedy": "^0.11.1",
"@playwright/test": "1.54.2",
"@rsdoctor/cli": "workspace:*",
"@rsdoctor/core": "workspace:*",
Expand All @@ -19,10 +19,10 @@
"@rsdoctor/types": "workspace:*",
"@rsdoctor/utils": "workspace:*",
"@rsdoctor/webpack-plugin": "workspace:*",
"@rspack/core": "1.5.1",
"@rspack/core": "1.5.2",
"@types/lodash": "^4.17.20",
"@types/node": "^22.8.1",
"@types/react": "^18.3.23",
"@types/react": "^18.3.24",
"loader-utils": "^2.0.4",
"lodash": "^4.17.21",
"playwright": "1.54.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"tslib": "2.8.1"
}
},
"packageManager": "[email protected].0",
"packageManager": "[email protected].1",
"engines": {
"node": ">=16.20.2",
"pnpm": ">=10.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@rsdoctor/components": "workspace:*",
"@rsdoctor/types": "workspace:*",
"@types/node": "^22.8.1",
"@types/react": "^18.3.23",
"@types/react": "^18.3.24",
"@types/react-dom": "^18.3.7",
"antd": "5.19.1",
"normalize.css": "8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.8.1",
"@types/path-browserify": "1.0.3",
"@types/react": "^18.3.23",
"@types/react": "^18.3.24",
"@types/react-highlight-words": "^0.20.0",
"@types/url-parse": "1.4.11",
"react": "18.3.1",
Expand All @@ -66,7 +66,7 @@
"antd": "5.19.1",
"axios": "^1.12.0",
"clsx": "^2.1.1",
"dayjs": "1.11.13",
"dayjs": "1.11.18",
"echarts": "^5.6.0",
"echarts-for-react": "^3.0.3",
"i18next": "22.0.4",
Expand Down
12 changes: 7 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,31 @@
"@rsdoctor/sdk": "workspace:*",
"@rsdoctor/types": "workspace:*",
"@rsdoctor/utils": "workspace:*",
"browserslist-load-config": "^1.0.0",
"browserslist-load-config": "^1.0.1",
"fs-extra": "^11.1.1",
"lodash-es": "^4.17.21",
"semver": "^7.7.2",
"source-map": "^0.7.4"
"source-map": "^0.7.6"
},
"devDependencies": {
"@rsbuild/plugin-check-syntax": "1.4.0",
"axios": "^1.12.0",
"path-browserify": "1.0.1",
"enhanced-resolve": "5.12.0",
"filesize": "^10.1.6",
"@rspack/core": "1.5.1",
"@rspack/core": "1.5.2",
"@scripts/test-helper": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.8.1",
"@types/node-fetch": "^2.6.12",
"@types/path-browserify": "1.0.3",
"@types/semver": "^7.7.0",
"@types/tapable": "2.2.7",
"babel-loader": "10.0.0",
"prebundle": "1.4.1",
"prebundle": "1.4.2",
"string-loader": "0.0.1",
"ts-loader": "^9.5.2",
"ts-loader": "^9.5.4",
"tslib": "2.8.1",
"typescript": "^5.9.2",
"webpack": "^5.97.1"
Expand Down
12 changes: 1 addition & 11 deletions packages/document/docs/en/guide/rules/rule-custom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ When writing custom rules, in addition to installing the basic `@rsdoctor/rspack

import { PackageManagerTabs } from '@theme';

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

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

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

- Component Input

- type

- The type of the component.
- value: 'link'.

- title

- The title of the rule.
- type: string.

- description

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

- level

- The level of the rule.
- type: warn | error.

Expand Down Expand Up @@ -266,19 +261,15 @@ report({
[CodeViewRule Type](#codeviewrule)

- Component Input

- type

- The type of the component.
- value: 'code-view'.

- title

- The title of the rule.
- type: string.

- description

- The description of the rule. The data comes from the `message` or `detail.description` in the `report` function:
```js
report({
Expand All @@ -292,7 +283,6 @@ report({
- type: string.

- level

- The level of the rule.
- type: warn | error.

Expand Down
2 changes: 1 addition & 1 deletion packages/document/docs/en/guide/start/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ We provide `@rsdoctor/cli` for you to use Rsdoctor's features locally through th

import { PackageManagerTabs } from '@theme';

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For projects using Modern.js's webpack mode, please register the `RsdoctorWebpac

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`.

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

<Tabs>

Expand Down
3 changes: 1 addition & 2 deletions packages/document/docs/en/guide/usage/module-analysis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ The `Reasons Tree` displays the dependency chain of this `Module`, showing which
- The `Usage` tag displays the purpose of various module tags.

- The `Concatenated` tag:

- 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.
- 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).
- 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).

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

Expand Down
12 changes: 1 addition & 11 deletions packages/document/docs/zh/guide/rules/rule-custom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {

import { PackageManagerTabs } from '@theme';

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

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

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

- 组件输入

- type

- 使用组件类型。
- value: 'link'。

- title

- 规则标题。
- type: string。

- description

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

- level

- 规则级别。
- type:warn | error。

Expand Down Expand Up @@ -267,19 +262,15 @@ report({
[CodeViewRule Type](#codeviewrule)

- 组件输入

- type

- 使用组件类型。
- value: 'code-view'。

- title

- 规则标题。
- type: string。

- description

- 规则描述。数据来源为 report 中的 message 或 detail.description:
```js
report({
Expand All @@ -293,7 +284,6 @@ report({
- type: string。

- level

- 规则级别。
- type:warn | error。

Expand Down
2 changes: 1 addition & 1 deletion packages/document/docs/zh/guide/start/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { PackageManagerTabs } from '@theme';

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {

在 `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)) 插件。

import { Tab, Tabs } from 'rspress/theme';
import { Tab, Tabs } from '@rspress/core/theme';

<Tabs>
<Tab label="Rspack">
Expand Down
3 changes: 1 addition & 2 deletions packages/document/docs/zh/guide/usage/module-analysis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@
- `Usage` 标签会展示各种模块标签的作用。

- `Concatenated`标签:

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

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

Expand Down
19 changes: 10 additions & 9 deletions packages/document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@rsdoctor/docs",
"version": "1.2.3",
"scripts": {
"dev": "rspress dev",
"build": "rspress build && sh build.sh",
"dev": "cross-env RSPRESS_PERSIST_CACHE=false rspress dev",
"build": "cross-env RSPRESS_PERSIST_CACHE=false rspress build",
"preview": "rspress preview"
},
"repository": {
Expand All @@ -24,17 +24,18 @@
},
"devDependencies": {
"@rsdoctor/types": "workspace:*",
"@rspress/plugin-algolia": "2.0.0-beta.20",
"@rspress/plugin-llms": "2.0.0-beta.20",
"@rspress/plugin-rss": "2.0.0-beta.6",
"@rspress/plugin-algolia": "2.0.0-beta.29",
"@rspress/plugin-llms": "2.0.0-beta.29",
"@rspress/plugin-rss": "2.0.0-beta.29",
"@types/node": "^22.8.1",
"@types/react": "^18.3.23",
"@types/react": "^18.3.24",
"@types/react-dom": "^18.3.7",
"cross-env": "^7.0.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"rsbuild-plugin-google-analytics": "^1.0.3",
"rsbuild-plugin-google-analytics": "^1.0.4",
"rsbuild-plugin-open-graph": "^1.1.0",
"rspress-plugin-font-open-sans": "^1.0.0",
"rspress-plugin-font-open-sans": "^1.0.3",
"rspress-plugin-sitemap": "^1.1.4",
"typescript": "^5.9.2",
"@rsbuild/plugin-sass": "^1.4.0"
Expand All @@ -43,6 +44,6 @@
"@rstack-dev/doc-ui": "1.11.0",
"clsx": "^2.1.1",
"react-markdown": "^9.1.0",
"rspress": "2.0.0-beta.6"
"@rspress/core": "2.0.0-beta.29"
}
}
6 changes: 2 additions & 4 deletions packages/document/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path';
import { defineConfig } from 'rspress/config';
import { defineConfig } from '@rspress/core';
import { pluginSass } from '@rsbuild/plugin-sass';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
Expand Down Expand Up @@ -91,9 +91,7 @@ export default defineConfig({
markdown: {
checkDeadLinks: true,
},
ssg: {
strict: true,
},
ssg: false,
route: {
cleanUrls: true,
// exclude document fragments from routes
Expand Down
4 changes: 2 additions & 2 deletions packages/document/theme/components/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
containerStyle,
innerContainerStyle,
} from '@rstack-dev/doc-ui/section-style';
import { useI18n } from 'rspress/runtime';
import { HomeFeature } from 'rspress/theme';
import { useI18n } from '@rspress/core/runtime';
import { HomeFeature } from '@rspress/core/theme';
import './Features.module.scss';

export function Features() {
Expand Down
2 changes: 1 addition & 1 deletion packages/document/theme/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Hero as BaseHero } from '@rstack-dev/doc-ui/hero';
import { useI18n, useNavigate } from 'rspress/runtime';
import { useI18n, useNavigate } from '@rspress/core/runtime';
import { useI18nUrl } from './utils';
import './Hero.module.scss';

Expand Down
2 changes: 1 addition & 1 deletion packages/document/theme/components/Overview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NoSSR } from 'rspress/runtime';
import { NoSSR } from '@rspress/core/runtime';
import { useUrl } from '../utils';
import styles from './Overview.module.scss';

Expand Down
4 changes: 2 additions & 2 deletions packages/document/theme/components/RuleIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import ReactMarkdown from 'react-markdown';
import { Rule } from '@rsdoctor/types';
import styles from './RuleIndex.module.scss';
const themeDefault = require('@rspress/core/theme');
import { getCustomMDXComponent } from '@rspress/core/theme';

const RuleIndex = () => {
const rules = Object.values(Rule.RuleErrorMap);
Expand Down Expand Up @@ -50,7 +50,7 @@ const RuleIndex = () => {
<div className={styles['card-body']} style={{ paddingTop: 0 }}>
<ReactMarkdown
components={{
...themeDefault.getCustomMDXComponent(),
...getCustomMDXComponent(),
code: (props) => <code {...props} />,
}}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/document/theme/components/ToolStack.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { containerStyle } from '@rstack-dev/doc-ui/section-style';
import { ToolStack as BaseToolStack } from '@rstack-dev/doc-ui/tool-stack';
import { useLang } from 'rspress/runtime';
import { useLang } from '@rspress/core/runtime';

export function ToolStack() {
const lang = useLang();
Expand Down
Loading
Loading