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 a124d7c6828 feat:ask ai (#3139)
a124d7c6828 is described below

commit a124d7c6828a061a7b5360f22b59d7e01fa0823f
Author: yangon <[email protected]>
AuthorDate: Tue Dec 2 15:00:53 2025 +0800

    feat:ask ai (#3139)
    
    <img width="3420" height="1962" alt="image"
    
src="https://github.com/user-attachments/assets/f4d56af4-db7f-4320-8e31-0b79e52ec605";
    />
---
 docusaurus.config.js | 71 +++++++++++++++++++++++++++++++---------------------
 static/.htaccess     | 19 ++++++++++++++
 2 files changed, 62 insertions(+), 28 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 91f172695e1..3ef261058de 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': '10c44fc4-7375-4b37-9554-b39132bcb855',
+            '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',
@@ -234,35 +249,35 @@ const config = {
                 jsLoader: 'matomo.js',
             },
             announcementBar: {
-            id: 'join_us',
+                id: 'join_us',
                 content: JSON.stringify({
-            //         zh: `<a 
href="https://www.selectdb.com/resources/events/doris-webinar-20250828"; 
target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
-            //     <img style="width: 19px; height: 19px; margin-right: 3px;" 
src="/images/nav-star.svg">
-            //     <span 
style="color:#52CAA3;font-size:0.875rem;font-weight:700;line-height:1rem; 
margin-right:0.675rem; text-decoration: none;">NEW</span>
-            //    <span>Apache Doris x Milvus 联合 Webinar:解锁 DB for AI 
的无限可能</span> 
-            //    <p 
style="margin-left:0.675rem;color:#52CAA3;font-size:0.875rem;line-height:1rem;font-weight:700;letter-spacing:0.28px;">查看详情
 -></p> 
-            //        </a>`,
-            //         en: `<a 
href="https://www.velodb.io/events/GenAI-AWS-251113"; target="_blank" 
style="display:flex; width: 100%; align-items: center; justify-content: center; 
margin-left: 4px; text-decoration: none;">
-            //         <img style="width: 19px; height: 19px; margin-right: 
3px;" src="/images/nav-star.svg">
-            //         <span 
style="color:#52CAA3;font-size:0.875rem;font-weight:700;line-height:1rem; 
margin-right:0.675rem; text-decoration: none;">NEW EVENTS</span>
-            //        <span>Webinar: Data Analytics in the Agentic AI 
Era</span> 
-            //        <p 
style="margin-left:0.675rem;color:#52CAA3;font-size:0.875rem;line-height:1rem;font-weight:700;letter-spacing:0.28px;">Register
 Now -></p> 
-            //            </a>`,
-            //     }),
-            //     content: JSON.stringify({
-            //         zh: `<a href="https://doris-summit.org.cn"; 
target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
-            //     <img style="width: 60px; height: 24px; margin-right: 34px;" 
src="/images/doris-summit.svg">
-            //    <span style="font-weight:700; font-size:0.875rem; 
line-height: 120%;">Powering Real-Time Analytics & Search  in the AI Era | 2025 
年 11 月 05 日-06 日 · 全网直播</span> 
-            //    <p 
style="margin-left:2.5rem;color:#FFF;font-size:0.875rem;line-height:120%;font-weight:600;">立即报名
 -></p> 
-            //        </a>`,
-            //         en: `<a 
href="https://www.airmeet.com/e/10fb98e0-9921-11f0-89cc-795d82447e40?utm_source=Apache_Doris_Banner";
 target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
-            //         <img style="width: 60px; height: 24px; margin-right: 
34px;" src="/images/doris-summit.svg">
-            //        <span style="font-weight:700; font-size:0.875rem; 
line-height: 120%;">Apache Doris Summit 2025 · Virtual</span> 
-            //        <p 
style="margin-left:2.5rem;color:#FFF;font-size:0.875rem;line-height:120%;font-weight:600;">See
 Full Agenda and Register Now -></p> 
-            //            </a>`,
+                    //         zh: `<a 
href="https://www.selectdb.com/resources/events/doris-webinar-20250828"; 
target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
+                    //     <img style="width: 19px; height: 19px; 
margin-right: 3px;" src="/images/nav-star.svg">
+                    //     <span 
style="color:#52CAA3;font-size:0.875rem;font-weight:700;line-height:1rem; 
margin-right:0.675rem; text-decoration: none;">NEW</span>
+                    //    <span>Apache Doris x Milvus 联合 Webinar:解锁 DB for AI 
的无限可能</span> 
+                    //    <p 
style="margin-left:0.675rem;color:#52CAA3;font-size:0.875rem;line-height:1rem;font-weight:700;letter-spacing:0.28px;">查看详情
 -></p> 
+                    //        </a>`,
+                    //         en: `<a 
href="https://www.velodb.io/events/GenAI-AWS-251113"; target="_blank" 
style="display:flex; width: 100%; align-items: center; justify-content: center; 
margin-left: 4px; text-decoration: none;">
+                    //         <img style="width: 19px; height: 19px; 
margin-right: 3px;" src="/images/nav-star.svg">
+                    //         <span 
style="color:#52CAA3;font-size:0.875rem;font-weight:700;line-height:1rem; 
margin-right:0.675rem; text-decoration: none;">NEW EVENTS</span>
+                    //        <span>Webinar: Data Analytics in the Agentic AI 
Era</span> 
+                    //        <p 
style="margin-left:0.675rem;color:#52CAA3;font-size:0.875rem;line-height:1rem;font-weight:700;letter-spacing:0.28px;">Register
 Now -></p> 
+                    //            </a>`,
+                    //     }),
+                    //     content: JSON.stringify({
+                    //         zh: `<a href="https://doris-summit.org.cn"; 
target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
+                    //     <img style="width: 60px; height: 24px; 
margin-right: 34px;" src="/images/doris-summit.svg">
+                    //    <span style="font-weight:700; font-size:0.875rem; 
line-height: 120%;">Powering Real-Time Analytics & Search  in the AI Era | 2025 
年 11 月 05 日-06 日 · 全网直播</span> 
+                    //    <p 
style="margin-left:2.5rem;color:#FFF;font-size:0.875rem;line-height:120%;font-weight:600;">立即报名
 -></p> 
+                    //        </a>`,
+                    //         en: `<a 
href="https://www.airmeet.com/e/10fb98e0-9921-11f0-89cc-795d82447e40?utm_source=Apache_Doris_Banner";
 target="_blank" style="display:flex; width: 100%; align-items: center; 
justify-content: center; margin-left: 4px; text-decoration: none;">
+                    //         <img style="width: 60px; height: 24px; 
margin-right: 34px;" src="/images/doris-summit.svg">
+                    //        <span style="font-weight:700; 
font-size:0.875rem; line-height: 120%;">Apache Doris Summit 2025 · 
Virtual</span> 
+                    //        <p 
style="margin-left:2.5rem;color:#FFF;font-size:0.875rem;line-height:120%;font-weight:600;">See
 Full Agenda and Register Now -></p> 
+                    //            </a>`,
                 }),
-            textColor: '#FFF',
-            isCloseable: false,
+                textColor: '#FFF',
+                isCloseable: false,
             },
             navbar: {
                 title: '',
diff --git a/static/.htaccess b/static/.htaccess
new file mode 100644
index 00000000000..9824e400402
--- /dev/null
+++ b/static/.htaccess
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+
+Header set Content-Security-Policy "script-src 'self' widget.kapa.ai 
www.google.com https://hcaptcha.com https://*.hcaptcha.com; connect-src 'self' 
proxy.kapa.ai kapa-widget-proxy-la7dkmplpq-uc.a.run.app metrics.kapa.ai 
https://hcaptcha.com https://*.hcaptcha.com; frame-src 'self' www.google.com 
https://hcaptcha.com https://*.hcaptcha.com; style-src 'self' 
https://hcaptcha.com https://*.hcaptcha.com; img-src 'self' blob: data: https:" 


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

Reply via email to