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


##########
home/docusaurus.config.js:
##########
@@ -399,5 +399,15 @@ module.exports = {
       },
     ],
   ],
-  themes: ['@docusaurus/theme-live-codeblock']
+  themes: ['@docusaurus/theme-live-codeblock'],
+  scripts: [
+    {
+      src: "https://widget.kapa.ai/kapa-widget.bundle.js";,

Review Comment:
   Loading third-party scripts from external domains introduces potential 
security and privacy concerns. Consider adding a Content Security Policy (CSP) 
configuration to control which external resources can be loaded, or document 
the security implications of loading this third-party widget for site 
administrators.



##########
home/docusaurus.config.js:
##########
@@ -399,5 +399,15 @@ module.exports = {
       },
     ],
   ],
-  themes: ['@docusaurus/theme-live-codeblock']
+  themes: ['@docusaurus/theme-live-codeblock'],
+  scripts: [
+    {
+      src: "https://widget.kapa.ai/kapa-widget.bundle.js";,
+      "data-website-id": "cb9dd0e9-5736-4572-be75-fd2ebe7443b0",
+      "data-project-name": "Apache HertzBeat",
+      "data-project-color": "#444FD9",
+      "data-project-logo": 
"https://hertzbeat.apache.org/zh-cn/assets/files/hertzbeat-logo-f92c500146ae43b9cb901600cd274d67.png";,

Review Comment:
   The logo URL contains a language-specific path segment `/zh-cn/` which may 
not be accessible or appropriate for all language versions of the site. Since 
the site supports multiple locales (en and zh-cn), consider using a 
language-neutral path or ensuring the logo is accessible from all locale paths.



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