diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8aff17b7fd..17871a1e6d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1211,8 +1211,8 @@ importers: specifier: 2.0.0-rc.0 version: 2.0.0-rc.0(@rspress/core@2.0.0-rc.0(@types/react@19.2.5)) '@rstack-dev/doc-ui': - specifier: ^1.11.0 - version: 1.11.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + specifier: ^1.12.0 + version: 1.12.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0) '@shikijs/transformers': specifier: ^3.15.0 version: 3.15.0 @@ -2813,8 +2813,8 @@ packages: '@rspress/shared@2.0.0-rc.0': resolution: {integrity: sha512-+Zwl+ycVwvwYg9eMTtoI/sst0Q/fJZS2oW+mEwj0La9hWHFutPcBHq0+zHHmi9eV7RHXLUo2lySfnQ14PTUPSw==} - '@rstack-dev/doc-ui@1.11.0': - resolution: {integrity: sha512-5GZ8EwvmKj8LXomEElC4GhDlDW2SazCeHbA+ieacJrlcGduuiJXGTBzVA2rNnPLjAb41H0esuy0aH0skRIQAqA==} + '@rstack-dev/doc-ui@1.12.0': + resolution: {integrity: sha512-YYnJ/8oCUuNMLxBXVFydmEfNOmELR7/Ee8Xcwh4Vt+sGhddf7GFFWFHD9c3fVy/IjdLL+rEIAj1i5nGQxsjwOA==} '@rstest/core@0.6.5': resolution: {integrity: sha512-nnJkWso5H4JetdHoK6gBPAcgN727xxrCrTC++5oo42lmmk1HRvHYOtOVi3uCdcNUaESrgjKYF4L5PDpowZUy/A==} @@ -8437,7 +8437,7 @@ snapshots: lodash-es: 4.17.21 unified: 11.0.5 - '@rstack-dev/doc-ui@1.11.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + '@rstack-dev/doc-ui@1.12.0(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': dependencies: framer-motion: 12.23.24(react-dom@19.2.0(react@19.2.0))(react@19.2.0) transitivePeerDependencies: diff --git a/website/docs/en/api/_meta.json b/website/docs/en/api/_meta.json index 0314e7b7e0..a6a11e733b 100644 --- a/website/docs/en/api/_meta.json +++ b/website/docs/en/api/_meta.json @@ -1,12 +1,12 @@ [ { - "type": "dir", + "type": "dir-section-header", "name": "start", "label": "Start" }, { - "type": "dir", + "type": "dir-section-header", "name": "javascript-api", - "label": "JavaScript API" + "label": "APIs" } ] diff --git a/website/docs/en/community/_meta.json b/website/docs/en/community/_meta.json index b8f833d9eb..2c9a312803 100644 --- a/website/docs/en/community/_meta.json +++ b/website/docs/en/community/_meta.json @@ -1,7 +1,11 @@ [ + { + "type": "section-header", + "label": "Community" + }, "index", { - "type": "dir", + "type": "dir-section-header", "name": "releases", "label": "Releases" } diff --git a/website/docs/en/community/index.mdx b/website/docs/en/community/index.mdx index df073a2c89..90a394d50e 100644 --- a/website/docs/en/community/index.mdx +++ b/website/docs/en/community/index.mdx @@ -1,4 +1,4 @@ -# Community +# Rsbuild community ## Version diff --git a/website/docs/en/config/_meta.json b/website/docs/en/config/_meta.json index d06c66d817..fd520cac71 100644 --- a/website/docs/en/config/_meta.json +++ b/website/docs/en/config/_meta.json @@ -1,8 +1,16 @@ [ + { + "type": "section-header", + "label": "Overview" + }, { "type": "file", "name": "index", - "label": "Overview" + "label": "Config overview" + }, + { + "type": "section-header", + "label": "Base options" }, "root", "mode", @@ -10,53 +18,53 @@ "log-level", "environments", { - "type": "dir", + "type": "dir-section-header", "name": "dev", - "label": "dev" + "label": "Dev options" }, { - "type": "dir", + "type": "dir-section-header", "name": "resolve", - "label": "resolve" + "label": "Resolve options" }, { - "type": "dir", + "type": "dir-section-header", "name": "source", - "label": "source" + "label": "Source options" }, { - "type": "dir", + "type": "dir-section-header", "name": "output", - "label": "output" + "label": "Output options" }, { - "type": "dir", + "type": "dir-section-header", "name": "html", - "label": "html" + "label": "HTML options" }, { - "type": "dir", + "type": "dir-section-header", "name": "server", - "label": "server" + "label": "Server options" }, { - "type": "dir", + "type": "dir-section-header", "name": "security", - "label": "security" + "label": "Security options" }, { - "type": "dir", + "type": "dir-section-header", "name": "tools", - "label": "tools" + "label": "Tools options" }, { - "type": "dir", + "type": "dir-section-header", "name": "performance", - "label": "performance" + "label": "Performance options" }, { - "type": "dir", + "type": "dir-section-header", "name": "module-federation", - "label": "moduleFederation" + "label": "Module Federation options" } ] diff --git a/website/docs/en/guide/_meta.json b/website/docs/en/guide/_meta.json index cf8368b693..603501718e 100644 --- a/website/docs/en/guide/_meta.json +++ b/website/docs/en/guide/_meta.json @@ -2,7 +2,7 @@ { "type": "dir-section-header", "name": "start", - "label": "Getting Started" + "label": "Start" }, { "type": "dir-section-header", diff --git a/website/docs/en/plugins/_meta.json b/website/docs/en/plugins/_meta.json index dfc348e2c9..b0d0120c93 100644 --- a/website/docs/en/plugins/_meta.json +++ b/website/docs/en/plugins/_meta.json @@ -1,11 +1,11 @@ [ { - "type": "dir", + "type": "dir-section-header", "name": "list", "label": "Plugins" }, { - "type": "dir", + "type": "dir-section-header", "name": "dev", "label": "Development" } diff --git a/website/docs/zh/api/_meta.json b/website/docs/zh/api/_meta.json index 7baac9482a..c567f81eee 100644 --- a/website/docs/zh/api/_meta.json +++ b/website/docs/zh/api/_meta.json @@ -1,12 +1,12 @@ [ { - "type": "dir", + "type": "dir-section-header", "name": "start", "label": "开始" }, { - "type": "dir", + "type": "dir-section-header", "name": "javascript-api", - "label": "JavaScript API" + "label": "APIs" } ] diff --git a/website/docs/zh/community/_meta.json b/website/docs/zh/community/_meta.json index f960104e84..7436cc38bf 100644 --- a/website/docs/zh/community/_meta.json +++ b/website/docs/zh/community/_meta.json @@ -1,7 +1,11 @@ [ + { + "type": "section-header", + "label": "社区" + }, "index", { - "type": "dir", + "type": "dir-section-header", "name": "releases", "label": "版本发布" } diff --git a/website/docs/zh/community/index.mdx b/website/docs/zh/community/index.mdx index b9b7217273..ed870eb74f 100644 --- a/website/docs/zh/community/index.mdx +++ b/website/docs/zh/community/index.mdx @@ -1,4 +1,4 @@ -# 社区 +# Rsbuild 社区 ## 版本 diff --git a/website/docs/zh/config/_meta.json b/website/docs/zh/config/_meta.json index d06c66d817..151f2cb78d 100644 --- a/website/docs/zh/config/_meta.json +++ b/website/docs/zh/config/_meta.json @@ -1,8 +1,16 @@ [ + { + "type": "section-header", + "label": "总览" + }, { "type": "file", "name": "index", - "label": "Overview" + "label": "配置总览" + }, + { + "type": "section-header", + "label": "基础选项" }, "root", "mode", @@ -10,53 +18,53 @@ "log-level", "environments", { - "type": "dir", + "type": "dir-section-header", "name": "dev", - "label": "dev" + "label": "Dev 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "resolve", - "label": "resolve" + "label": "Resolve 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "source", - "label": "source" + "label": "Source 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "output", - "label": "output" + "label": "Output 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "html", - "label": "html" + "label": "HTML 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "server", - "label": "server" + "label": "Server 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "security", - "label": "security" + "label": "Security 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "tools", - "label": "tools" + "label": "Tools 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "performance", - "label": "performance" + "label": "Performance 选项" }, { - "type": "dir", + "type": "dir-section-header", "name": "module-federation", - "label": "moduleFederation" + "label": "Module Federation 选项" } ] diff --git a/website/docs/zh/config/index.mdx b/website/docs/zh/config/index.mdx index 2e65cd5a8d..3383b89547 100644 --- a/website/docs/zh/config/index.mdx +++ b/website/docs/zh/config/index.mdx @@ -3,7 +3,7 @@ pageType: doc-wide outline: false --- -# Config 总览 +# 配置总览 当前页面列出了 Rsbuild 所有的配置项,请查看 [「配置 Rsbuild」](/guide/configuration/rsbuild) 了解使用方式。 diff --git a/website/docs/zh/plugins/_meta.json b/website/docs/zh/plugins/_meta.json index 57a0965e43..5f5d1035c8 100644 --- a/website/docs/zh/plugins/_meta.json +++ b/website/docs/zh/plugins/_meta.json @@ -1,11 +1,11 @@ [ { - "type": "dir", + "type": "dir-section-header", "name": "list", "label": "插件列表" }, { - "type": "dir", + "type": "dir-section-header", "name": "dev", "label": "开发" } diff --git a/website/package.json b/website/package.json index 09e83b3943..becb8bbf44 100644 --- a/website/package.json +++ b/website/package.json @@ -18,7 +18,7 @@ "@rspress/plugin-llms": "2.0.0-rc.0", "@rspress/plugin-rss": "2.0.0-rc.0", "@rspress/plugin-sitemap": "2.0.0-rc.0", - "@rstack-dev/doc-ui": "^1.11.0", + "@rstack-dev/doc-ui": "^1.12.0", "@shikijs/transformers": "^3.15.0", "@types/node": "^24.10.1", "@types/react": "^19.2.5", diff --git a/website/theme/rsbuildPluginOverview.ts b/website/theme/rsbuildPluginOverview.ts index 473e5615ac..c6e51dc911 100644 --- a/website/theme/rsbuildPluginOverview.ts +++ b/website/theme/rsbuildPluginOverview.ts @@ -16,7 +16,7 @@ export const rsbuildPluginOverview: RsbuildPlugin = { const files = await glob(globPath); const groups: Group[] = [ { - name: 'top level', + name: 'base', items: [ { text: 'root', @@ -66,7 +66,7 @@ export const rsbuildPluginOverview: RsbuildPlugin = { } const order = [ - 'top level', + 'base', 'source', 'output', 'html',