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 b72966dee3c Add algolia search (#1363)
b72966dee3c is described below

commit b72966dee3c1e055cb8c62c0dd15a33394aa7c1e
Author: Albumen Kevin <[email protected]>
AuthorDate: Wed Aug 10 17:41:18 2022 +0800

    Add algolia search (#1363)
---
 content/zh/_index.html                                 |  1 +
 .../performance/router-snapshot.md                     |  4 ++--
 layouts/partials/hooks/body-end.html                   | 18 +++++++++++++++---
 3 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/content/zh/_index.html b/content/zh/_index.html
index 96acefb42d3..67abf2c5480 100644
--- a/content/zh/_index.html
+++ b/content/zh/_index.html
@@ -6,6 +6,7 @@ linkTitle = "Apache Dubbo Website"
 
 {{< blocks/cover title="Apache Dubbo" image_anchor="top" height="full" 
color="secondary" >}}
 <div class="mx-auto">
+    <div id="docsearch_zh_home" class="btn btn-lg mr-3 mb-4"></div>
     <a class="btn btn-lg btn-primary mr-3 mb-4" href='{{< relref 
"/overview/quickstart/" >}}'>
         快速开始 <i class="fas fa-arrow-alt-circle-right ml-2"></i>
     </a>
diff --git 
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/router-snapshot.md
 
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/router-snapshot.md
index 94aea6a27e7..995fce628be 100644
--- 
a/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/router-snapshot.md
+++ 
b/content/zh/docs3-v2/java-sdk/advanced-features-and-usage/performance/router-snapshot.md
@@ -17,7 +17,7 @@ Dubbo 的很多流量治理能力是基于 Router 进行实现的,在生产环
 Dubbo 在收到地址变更的时候,会将地址信息推送给所有的 `Router`,这些 `Router` 
可以在此阶段提前计算路由的分组,缓存起来,以避免在调用时需要遍历所有的提供者计算分组参数。
 在 Dubbo 3 中引入的 `StateRouter` 提供了通过 qos 命令工具实时获取每个路由的状态的能力。
 
-运维人员可以通过 `getRouterSnapshot` 命令获取路由的状态。具体命令使用方式可以参考 [getRouterSnapshot 
命令](../../..//reference-manual/qos/router-snapshot/#getroutersnapshot-%E5%91%BD%E4%BB%A4)
 文档。
+运维人员可以通过 `getRouterSnapshot` 命令获取路由的状态。具体命令使用方式可以参考 [getRouterSnapshot 
命令](../../../reference-manual/qos/router-snapshot/#getroutersnapshot-%E5%91%BD%E4%BB%A4)
 文档。
 
 **注:此功能仅支持 `StateRoute`,且 `StateRouter` 需要基于 `AbstractStateRouter` 实现 
`doBuildSnapshot` 接口。**
 
@@ -50,7 +50,7 @@ No provider available after route for the service 服务 from 
registry 注册中
 
 #### 开启路由全采样
 
-在一些特殊情况下,请求可能调用到错误的服务端,但是因为选址非空,所以无法看到路由的过程信息,此时可以 [通过 qos 
开启路由全采样](../../..//reference-manual/qos/router-snapshot/)。通过 qos 的 
`getRecentRouterSnapshot` 命令可以远程获取最近的路由快照。
+在一些特殊情况下,请求可能调用到错误的服务端,但是因为选址非空,所以无法看到路由的过程信息,此时可以 [通过 qos 
开启路由全采样](../../../reference-manual/qos/router-snapshot/)。通过 qos 的 
`getRecentRouterSnapshot` 命令可以远程获取最近的路由快照。
 
 ```
 dubbo>getRecentRouterSnapshot
diff --git a/layouts/partials/hooks/body-end.html 
b/layouts/partials/hooks/body-end.html
index d7da539a3f3..54a5ed17b8b 100644
--- a/layouts/partials/hooks/body-end.html
+++ b/layouts/partials/hooks/body-end.html
@@ -4,12 +4,24 @@
     docsearch({
         // Your apiKey and indexName will be given to you once
         // we create your config
-        appId: 'BVDW4O6RT8',
-        apiKey: 'ac93e2697aa2f34e154cb3f0a3a069ae',
+        appId: 'BH4D9OD16A',
+        apiKey: '38eff7758162fbf70f2b8484932e62ae',
         indexName: 'apache_dubbo',
         // Replace inputSelector with a CSS selector
         // matching your search input
-        container: '#docsearch123',
+        container: '#docsearch',
+        // Set debug to true to inspect the dropdown
+        debug: false,
+    });
+    docsearch({
+        // Your apiKey and indexName will be given to you once
+        // we create your config
+        appId: 'BH4D9OD16A',
+        apiKey: '38eff7758162fbf70f2b8484932e62ae',
+        indexName: 'apache_dubbo',
+        // Replace inputSelector with a CSS selector
+        // matching your search input
+        container: '#docsearch_zh_home',
         // Set debug to true to inspect the dropdown
         debug: false,
     });

Reply via email to