This is an automated email from the ASF dual-hosted git repository.

jeffreyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e2de17f2eb1 feat:ask ai  (#3149)
e2de17f2eb1 is described below

commit e2de17f2eb1c6c47b251a85e956730860eac866d
Author: yangon <[email protected]>
AuthorDate: Wed Dec 3 16:46:24 2025 +0800

    feat:ask ai  (#3149)
---
 docusaurus.config.js | 17 ++++++++++++++++-
 static/.htaccess     |  3 +++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 03b97e9d9f1..449db8e4ccc 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -65,7 +65,22 @@ const config = {
             },
         },
     },
-    scripts: ['/js/custom-script.js'],
+    scripts: ['/js/custom-script.js',
+        {
+            async: true,
+            src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
+            'data-website-id': 'a5fb90df-217a-4097-95c0-80490220314b',
+            'data-modal-title': 'Apache Doris AI',
+            'data-project-name': 'Apache Doris Website',
+            'data-project-logo': 
'https://cdn.selectdb.com/static/doris_1_3c42247c63.png',
+            'data-modal-image': 
'https://cdn.selectdb.com/static/doris_logo_only_9617fa366a.png',
+            'data-project-color': '#444FD9',
+            'data-modal-disclaimer': 'This is a custom LLM with access to all 
[Doris 
documentation](https://doris.apache.org/docs/4.x/gettingStarted/what-is-apache-doris).',
+            'data-consent-required': true,
+            'data-consent-screen-disclaimer': "By clicking &quot;I agree, 
let's chat&quot;, you consent to the use of the AI assistant in accordance with 
kapa.ai's [Privacy Policy](https://www.kapa.ai/content/privacy-policy). This 
service uses reCAPTCHA, which requires your consent to Google's [Privacy 
Policy](https://policies.google.com/privacy) and [Terms of 
Service](https://policies.google.com/terms). By proceeding, you explicitly 
agree to both kapa.ai's and Google's privacy policies.",
+            'data-user-analytics-cookie-enabled': false,
+        }
+    ],
     stylesheets: [
         // 
'https://cdn-font.hyperos.mi.com/font/css?family=MiSans:100,200,300,400,450,500,600,650,700,900:Chinese_Simplify,Latin&display=swap',
         // 
'https://cdn-font.hyperos.mi.com/font/css?family=MiSans_Latin:100,200,300,400,450,500,600,650,700,900:Latin&display=swap',
diff --git a/static/.htaccess b/static/.htaccess
new file mode 100644
index 00000000000..97a152dbe41
--- /dev/null
+++ b/static/.htaccess
@@ -0,0 +1,3 @@
+<IfModule mod_headers.c>
+    Header set Content-Security-Policy "script-src 'self' widget.kapa.ai 
www.google.com https://hcaptcha.com https://*.hcaptcha.com 
https://www.gstatic.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' 
proxy.kapa.ai kapa-widget-proxy-la7dkmplpq-uc.a.run.app metrics.kapa.ai 
https://hcaptcha.com https://*.hcaptcha.com www.google.com; frame-src 'self' 
www.google.com https://hcaptcha.com https://*.hcaptcha.com; style-src 'self' 
'unsafe-inline' https://hcaptcha.com https://*.hcaptcha.com;";
+</IfModule>


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

Reply via email to