From bece5654a14ac98e179ca7db5d172c1ff47f95d5 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 14 Oct 2025 21:53:08 +0800 Subject: [PATCH 1/2] docs: add version history tables to config files --- website/docs/en/config/dev/browser-logs.mdx | 7 ++++++- website/docs/en/config/dev/lazy-compilation.mdx | 2 +- website/docs/en/config/html/tags.mdx | 7 ++++++- website/docs/en/config/output/module.mdx | 7 ++++++- website/docs/en/config/server/print-urls.mdx | 6 ++++++ website/docs/zh/config/dev/browser-logs.mdx | 6 ++++++ website/docs/zh/config/dev/lazy-compilation.mdx | 2 +- website/docs/zh/config/html/tags.mdx | 7 ++++++- website/docs/zh/config/output/module.mdx | 7 ++++++- website/docs/zh/config/server/print-urls.mdx | 6 ++++++ 10 files changed, 50 insertions(+), 7 deletions(-) diff --git a/website/docs/en/config/dev/browser-logs.mdx b/website/docs/en/config/dev/browser-logs.mdx index 82c64aec29..fca87fa549 100644 --- a/website/docs/en/config/dev/browser-logs.mdx +++ b/website/docs/en/config/dev/browser-logs.mdx @@ -2,7 +2,6 @@ - **Type:** `boolean` - **Default:** `true` -- **Version:** Added in v1.5.13 Controls whether to forward browser runtime errors to the terminal. @@ -36,3 +35,9 @@ export default { }, }; ``` + +## Version history + +| Version | Changes | +| ------- | ---------------------- | +| v1.5.13 | Introduced this option | diff --git a/website/docs/en/config/dev/lazy-compilation.mdx b/website/docs/en/config/dev/lazy-compilation.mdx index 941ecaa465..5b3830e5a8 100644 --- a/website/docs/en/config/dev/lazy-compilation.mdx +++ b/website/docs/en/config/dev/lazy-compilation.mdx @@ -135,5 +135,5 @@ Rsbuild will replace the `` placeholder with the actual port number the se | Version | Changes | | ------- | --------------------------------------------------- | -| v1.3.0 | Added configuration option | +| v1.3.0 | Introduced this option | | v1.5.0 | Changed default value from `false` to current value | diff --git a/website/docs/en/config/html/tags.mdx b/website/docs/en/config/html/tags.mdx index 620b5925ee..79282010ca 100644 --- a/website/docs/en/config/html/tags.mdx +++ b/website/docs/en/config/html/tags.mdx @@ -266,7 +266,6 @@ See [Injection position](#injection-position) for more details. - **Type:** `Record` - **Default:** `undefined` -- **Version:** Added in v1.4.7 The metadata object for tags, used to store additional information about tags. `metadata` does not affect the generated HTML content. @@ -486,3 +485,9 @@ The result will look like: ``` + +## Version history + +| Version | Changes | +| ------- | ----------------------------------- | +| v1.4.7 | Added support for `metadata` option | diff --git a/website/docs/en/config/output/module.mdx b/website/docs/en/config/output/module.mdx index 101c93fe8a..9c8a06c73d 100644 --- a/website/docs/en/config/output/module.mdx +++ b/website/docs/en/config/output/module.mdx @@ -2,7 +2,6 @@ - **Type:** `boolean` - **Default:** `false` -- **Version:** Added in v1.5.0 Whether to output JavaScript files in ES modules format. @@ -49,3 +48,9 @@ export default { }, }; ``` + +## Version history + +| Version | Changes | +| ------- | ---------------------- | +| v1.5.0 | Introduced this option | diff --git a/website/docs/en/config/server/print-urls.mdx b/website/docs/en/config/server/print-urls.mdx index 0df6229ff3..2d401eadda 100644 --- a/website/docs/en/config/server/print-urls.mdx +++ b/website/docs/en/config/server/print-urls.mdx @@ -146,3 +146,9 @@ Output: ``` ➜ Local: http://localhost:3000 ``` + +## Version history + +| Version | Changes | +| ------- | -------------------------- | +| v1.5.17 | Support for custom `label` | diff --git a/website/docs/zh/config/dev/browser-logs.mdx b/website/docs/zh/config/dev/browser-logs.mdx index bb55b5dd5d..add3e9e5c0 100644 --- a/website/docs/zh/config/dev/browser-logs.mdx +++ b/website/docs/zh/config/dev/browser-logs.mdx @@ -36,3 +36,9 @@ export default { }, }; ``` + +## 版本历史 + +| 版本 | 变更内容 | +| ------ | -------------- | +| v1.3.0 | 首次新增该选项 | diff --git a/website/docs/zh/config/dev/lazy-compilation.mdx b/website/docs/zh/config/dev/lazy-compilation.mdx index 912af160c0..ace0209b36 100644 --- a/website/docs/zh/config/dev/lazy-compilation.mdx +++ b/website/docs/zh/config/dev/lazy-compilation.mdx @@ -135,5 +135,5 @@ Rsbuild 会自动将 `` 占位符替换为 server 实际监听的端口号 | 版本 | 变更内容 | | ------ | --------------------------- | -| v1.3.0 | 新增配置项 | +| v1.3.0 | 首次新增该选项 | | v1.5.0 | 默认值由 `false` 改为当前值 | diff --git a/website/docs/zh/config/html/tags.mdx b/website/docs/zh/config/html/tags.mdx index 5fe9d032be..b502bbde0e 100644 --- a/website/docs/zh/config/html/tags.mdx +++ b/website/docs/zh/config/html/tags.mdx @@ -266,7 +266,6 @@ export default { - **类型:** `Record` - **默认值:** `undefined` -- **版本:** 添加于 v1.4.7 标签的元信息对象,用于存储标签的附加信息。`metadata` 不会影响生成的 HTML 内容。 @@ -486,3 +485,9 @@ export default { ``` + +## 版本历史 + +| 版本 | 变更内容 | +| ------ | -------------------- | +| v1.4.7 | 新增 `metadata` 选项 | diff --git a/website/docs/zh/config/output/module.mdx b/website/docs/zh/config/output/module.mdx index 4607130fa9..c5b3812489 100644 --- a/website/docs/zh/config/output/module.mdx +++ b/website/docs/zh/config/output/module.mdx @@ -2,7 +2,6 @@ - **类型:** `boolean` - **默认值:** `false` -- **版本:** 添加于 v1.5.0 是否以 ES 模块格式输出 JavaScript 文件。 @@ -49,3 +48,9 @@ export default { }, }; ``` + +## 版本历史 + +| 版本 | 变更内容 | +| ------ | -------------- | +| v1.5.0 | 首次新增该选项 | diff --git a/website/docs/zh/config/server/print-urls.mdx b/website/docs/zh/config/server/print-urls.mdx index 018d1f3d20..2df73a2916 100644 --- a/website/docs/zh/config/server/print-urls.mdx +++ b/website/docs/zh/config/server/print-urls.mdx @@ -147,3 +147,9 @@ export default { ``` ➜ Local: http://localhost:3000 ``` + +## 版本历史 + +| 版本 | 变更内容 | +| ------- | ------------------ | +| v1.5.17 | 支持自定义 `label` | From 6deb94562375edbd8dcfbe7d673034b6a22a6993 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 14 Oct 2025 21:54:42 +0800 Subject: [PATCH 2/2] fix --- website/docs/en/config/dev/browser-logs.mdx | 6 +++--- website/docs/en/config/dev/lazy-compilation.mdx | 2 +- website/docs/en/config/output/module.mdx | 6 +++--- website/docs/zh/config/dev/browser-logs.mdx | 6 +++--- website/docs/zh/config/dev/lazy-compilation.mdx | 2 +- website/docs/zh/config/output/module.mdx | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/website/docs/en/config/dev/browser-logs.mdx b/website/docs/en/config/dev/browser-logs.mdx index fca87fa549..62d145c464 100644 --- a/website/docs/en/config/dev/browser-logs.mdx +++ b/website/docs/en/config/dev/browser-logs.mdx @@ -38,6 +38,6 @@ export default { ## Version history -| Version | Changes | -| ------- | ---------------------- | -| v1.5.13 | Introduced this option | +| Version | Changes | +| ------- | ----------------- | +| v1.5.13 | Added this option | diff --git a/website/docs/en/config/dev/lazy-compilation.mdx b/website/docs/en/config/dev/lazy-compilation.mdx index 5b3830e5a8..45a9bcb5b1 100644 --- a/website/docs/en/config/dev/lazy-compilation.mdx +++ b/website/docs/en/config/dev/lazy-compilation.mdx @@ -135,5 +135,5 @@ Rsbuild will replace the `` placeholder with the actual port number the se | Version | Changes | | ------- | --------------------------------------------------- | -| v1.3.0 | Introduced this option | +| v1.3.0 | Added this option | | v1.5.0 | Changed default value from `false` to current value | diff --git a/website/docs/en/config/output/module.mdx b/website/docs/en/config/output/module.mdx index 9c8a06c73d..9b51003f74 100644 --- a/website/docs/en/config/output/module.mdx +++ b/website/docs/en/config/output/module.mdx @@ -51,6 +51,6 @@ export default { ## Version history -| Version | Changes | -| ------- | ---------------------- | -| v1.5.0 | Introduced this option | +| Version | Changes | +| ------- | ----------------- | +| v1.5.0 | Added this option | diff --git a/website/docs/zh/config/dev/browser-logs.mdx b/website/docs/zh/config/dev/browser-logs.mdx index add3e9e5c0..a44368107f 100644 --- a/website/docs/zh/config/dev/browser-logs.mdx +++ b/website/docs/zh/config/dev/browser-logs.mdx @@ -39,6 +39,6 @@ export default { ## 版本历史 -| 版本 | 变更内容 | -| ------ | -------------- | -| v1.3.0 | 首次新增该选项 | +| 版本 | 变更内容 | +| ------ | ---------- | +| v1.3.0 | 新增该选项 | diff --git a/website/docs/zh/config/dev/lazy-compilation.mdx b/website/docs/zh/config/dev/lazy-compilation.mdx index ace0209b36..924f1caea9 100644 --- a/website/docs/zh/config/dev/lazy-compilation.mdx +++ b/website/docs/zh/config/dev/lazy-compilation.mdx @@ -135,5 +135,5 @@ Rsbuild 会自动将 `` 占位符替换为 server 实际监听的端口号 | 版本 | 变更内容 | | ------ | --------------------------- | -| v1.3.0 | 首次新增该选项 | +| v1.3.0 | 新增该选项 | | v1.5.0 | 默认值由 `false` 改为当前值 | diff --git a/website/docs/zh/config/output/module.mdx b/website/docs/zh/config/output/module.mdx index c5b3812489..47158a8bda 100644 --- a/website/docs/zh/config/output/module.mdx +++ b/website/docs/zh/config/output/module.mdx @@ -51,6 +51,6 @@ export default { ## 版本历史 -| 版本 | 变更内容 | -| ------ | -------------- | -| v1.5.0 | 首次新增该选项 | +| 版本 | 变更内容 | +| ------ | ---------- | +| v1.5.0 | 新增该选项 |