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 1395fd7e4c Update docsearch (#1321)
1395fd7e4c is described below
commit 1395fd7e4cc205117432dc71eaae28be76ac404f
Author: Albumen Kevin <[email protected]>
AuthorDate: Tue Aug 2 09:51:17 2022 +0800
Update docsearch (#1321)
---
layouts/partials/hooks/body-end.html | 19 ++++++-------------
layouts/partials/hooks/head-end.html | 2 +-
package.json | 2 +-
3 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/layouts/partials/hooks/body-end.html
b/layouts/partials/hooks/body-end.html
index 1e881958a6..a88dade516 100644
--- a/layouts/partials/hooks/body-end.html
+++ b/layouts/partials/hooks/body-end.html
@@ -1,16 +1,9 @@
{{ with .Site.Params.algolia_docsearch }}
-<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn/docsearch.min.js"></script>
-<script>
- docsearch({
- // Your apiKey and indexName will be given to you once
- // we create your config
- apiKey: '38eff7758162fbf70f2b8484932e62ae',
+<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
+<script type="text/javascript">docsearch({
+ container: '.td-search-input',
+ appId: 'BVDW4O6RT8',
+ apiKey: 'ac93e2697aa2f34e154cb3f0a3a069ae',
indexName: 'apache_dubbo',
- // Replace inputSelector with a CSS selector
- // matching your search input
- inputSelector: '.td-search-input',
- // Set debug to true to inspect the dropdown
- debug: false,
- });
-</script>
+});</script>
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/hooks/head-end.html
b/layouts/partials/hooks/head-end.html
index 804fe38e9e..03e91efa21 100644
--- a/layouts/partials/hooks/head-end.html
+++ b/layouts/partials/hooks/head-end.html
@@ -1,3 +1,3 @@
{{ with .Site.Params.algolia_docsearch }}
-<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
{{ end }}
\ No newline at end of file
diff --git a/package.json b/package.json
index 89c891eebb..26de4177fa 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/apache/dubbo-website/issues"
},
- "homepage": "http://dubbo.io",
+ "homepage": "https://dubbo.apache.org",
"devDependencies": {
"autoprefixer": "^9.8.6",
"postcss-cli": "^7.1.2"