Copilot commented on code in PR #4019:
URL: https://github.com/apache/hertzbeat/pull/4019#discussion_r2779266645


##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/spring_gateway.md:
##########


Review Comment:
   这里将 Spring Cloud Gateway 的端口描述成“数据库提供的默认端口”,语义错误。建议改为网关/应用对外服务端口(默认 
8080)之类的描述。
   ```suggestion
   | 端口       | 网关/应用对外服务端口,默认 8080。                                   |
   ```



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/pulsar.md:
##########


Review Comment:
   存在明显的复制粘贴遗留:`keywords` 里包含 `HbaseMaster监控` 与 Pulsar 不相关;且端口描述中的 
`webServiceProt` 应为 `webServicePort`(或直接描述为 Web Service 
Port)。建议修正关键词与端口字段说明,避免搜索与阅读误导。



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/websocket.md:
##########


Review Comment:
   Markdown 表格行首使用了 `||`,会导致渲染出一个空的首列(Docusaurus/Markdown 标准表格应以单个 `|` 
开始)。建议将表格行首统一改为单个 `|`,避免所有新增文档出现多一列的排版问题。



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/apollo.md:
##########


Review Comment:
   Apollo 文档中端口字段描述引用了 Pulsar 的 `webServiceProt`(明显为复制粘贴错误)。建议改为 Apollo 暴露 
Prometheus 指标的服务端口描述,与上文 `${someIp:somePort}/prometheus` 保持一致。
   ```suggestion
   | 端口     | Apollo 暴露 Prometheus 指标的服务端口,默认为 8080。             |
   ```



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/pulsar.md:
##########


Review Comment:
   存在明显的复制粘贴遗留:`keywords` 里包含 `HbaseMaster监控` 与 Pulsar 不相关;且端口描述中的 
`webServiceProt` 应为 `webServicePort`(或直接描述为 Web Service 
Port)。建议修正关键词与端口字段说明,避免搜索与阅读误导。



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/modbus.md:
##########


Review Comment:
   该小节标题在 `holding-register` 
指标集合下,却写成“线圈寄存器地址”,与上下文不一致(这里应是保持寄存器地址示例)。建议更正标题,避免用户按错误的寄存器类型配置。
   ```suggestion
   1. 参数数量需要与参数中保持寄存器地址的总数量一样
   2. 参数别名格式: holding-register:m 或 holding-register:m-n
   
   参数示例:
   
   保持寄存器地址:
   ```



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/community/submit-code.md:
##########


Review Comment:
   `git checkout origin/master` 会进入 detached HEAD,不利于后续在本地分支上持续同步与提交。建议改为检出本地 
`master`(或用 `git checkout -B master origin/master` 方式确保本地分支存在)后再 merge upstream。
   ```suggestion
     git checkout -B master origin/master
   ```



##########
home/docusaurus.config.js:
##########
@@ -303,10 +303,10 @@ module.exports = {
           remarkPlugins: [
             [require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }],
           ],
-          lastVersion: '1.7.x',
+          lastVersion: '1.8.0',
           versions: {
             current: {
-              label: 'dev',
+              label: '1.8.0',

Review Comment:
   `versions.current.label` 被设置为 `1.8.0` 可能会把“current(通常代表 dev/next)”在版本下拉中展示为 
1.8.0,从而与实际的 `version-1.8.0` 文档产生混淆。建议保持 `current` 的 label 为 `dev/next`,并确保 
1.8.0 作为独立版本条目呈现为最新稳定版本(或按站点既定的版本策略调整 `lastVersion`/`versions` 配置)。
   ```suggestion
                 label: 'dev/next',
   ```



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/alert_webhook.md:
##########


Review Comment:
   示例 JSON 中 `triggerTime` 是 ISO 时间字符串,但字段说明写的是 `int64` 
毫秒时间戳,二者矛盾。建议统一:要么示例改为毫秒时间戳(如 1645795933000),要么字段说明改为 ISO-8601 字符串类型。



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/grafana_dashboard.md:
##########


Review Comment:
   文档建议开启匿名访问并授予 `org_role = Admin`,且允许 viewers 
编辑,这在生产环境风险极高(任何人可获得管理权限)。建议明确标注“仅限本地/测试环境”,并将示例默认角色降为 `Viewer`(或至少 
`Editor`),同时避免开启 `viewers_can_edit`。



##########
home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/alert_webhook.md:
##########


Review Comment:
   示例 JSON 中 `triggerTime` 是 ISO 时间字符串,但字段说明写的是 `int64` 
毫秒时间戳,二者矛盾。建议统一:要么示例改为毫秒时间戳(如 1645795933000),要么字段说明改为 ISO-8601 字符串类型。
   ```suggestion
     "triggerTime": 1645795933000,
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to