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

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


The following commit(s) were added to refs/heads/master by this push:
     new 56096fb3f3d Remove kapa ai (#3008)
56096fb3f3d is described below

commit 56096fb3f3df2bc3fb10b4c91282812db05eeb0d
Author: Albumen Kevin <[email protected]>
AuthorDate: Tue Jul 23 10:47:24 2024 +0800

    Remove kapa ai (#3008)
---
 cn_config.toml                |  2 +-
 config.toml                   |  2 +-
 layouts/partials/head.html    |  2 --
 layouts/partials/scripts.html | 20 --------------------
 4 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/cn_config.toml b/cn_config.toml
index c76e235ca79..00198e97de0 100644
--- a/cn_config.toml
+++ b/cn_config.toml
@@ -99,7 +99,7 @@ github_branch = "master"
 
 #gcs_engine_id = "011737558837375720776:fsdu1nryfng"
 
-algolia_docsearch = false
+algolia_docsearch = true
 offlineSearch = false
 
 
diff --git a/config.toml b/config.toml
index c111bfc65da..52ca0c53ec5 100644
--- a/config.toml
+++ b/config.toml
@@ -93,7 +93,7 @@ github_branch = "master"
 
 #gcs_engine_id = "011737558837375720776:fsdu1nryfng"
 
-algolia_docsearch = false
+algolia_docsearch = true
 offlineSearch = false
 
 
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c00f2c41273..7acd55ad231 100755
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -31,8 +31,6 @@
 <!-- Docsy head.html begins here -->
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1, 
shrink-to-fit=no">
-<!--Google needs to be allowed for kapa.ai widget to work-->
-<meta http-equiv="Content-Security-Policy" content="frame-src *">
 {{ hugo.Generator }}
 {{ range .AlternativeOutputFormats -}}
 <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | 
safeURL }}">
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index c6f6cd78fdf..0dd04aa4a42 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -21,26 +21,6 @@
 <script src='/js/prism.js'></script>
 {{ end }}
 
-<script async
-        src="https://widget.kapa.ai/kapa-widget.bundle.js";
-        data-website-id="d763c4f2-f871-400b-aeca-d986c4af73c2"
-        data-project-name="Apache Dubbo"
-        data-project-color="#E8442E"
-        data-button-text="Ask AI"
-        data-search-mode-enabled="true"
-        data-modal-open-on-command-k="true"
-        data-modal-disclaimer="The AI supports multiple languages, but it may 
not be accessible in China due to recaptcha, a proxy is required."
-        
data-project-logo="https://pbs.twimg.com/profile_images/1011849068283191302/FJbH5vbF_400x400.jpg";
-        data-modal-example-questions="What is Apache Dubbo?,How to run Apache 
Dubbo?"
-        data-button-position-top=""
-        data-button-position-right="20px"
-        data-button-position-bottom="200px"
-        data-button-position-left=""
-></script>
-
-
-
-
 <!--init performance SDK -->
 <script>
   (function (w, d, s, q, i) {

Reply via email to