diff --git a/package.json b/package.json
index f0f75bb10c..a02889d62f 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,8 @@
"build": "vuepress build src"
},
"dependencies": {
+ "@docsearch/js": "^1.0.0-alpha.27",
+ "@docsearch/css": "^1.0.0-alpha.27",
"axios": "^0.19.1",
"showdown": "^1.9.1"
}
diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js
index 0be09c846d..b516494d0f 100644
--- a/src/.vuepress/config.js
+++ b/src/.vuepress/config.js
@@ -277,7 +277,11 @@ module.exports = {
'/community/': sidebar.guide,
'/api/': sidebar.api
},
- smoothScroll: false
+ smoothScroll: false,
+ algolia: {
+ indexName: 'vuejs-v3',
+ apiKey: 'bc6e8acb44ed4179c30d0a45d6140d3f'
+ }
},
plugins: [
[
diff --git a/src/.vuepress/theme/components/AlgoliaSearchBox.vue b/src/.vuepress/theme/components/AlgoliaSearchBox.vue
index 4d51a717cb..dfacd8a2f9 100644
--- a/src/.vuepress/theme/components/AlgoliaSearchBox.vue
+++ b/src/.vuepress/theme/components/AlgoliaSearchBox.vue
@@ -1,29 +1,23 @@
-
+
-
diff --git a/src/.vuepress/theme/components/Navbar.vue b/src/.vuepress/theme/components/Navbar.vue
index fbafc009e9..e5d209b34c 100644
--- a/src/.vuepress/theme/components/Navbar.vue
+++ b/src/.vuepress/theme/components/Navbar.vue
@@ -23,11 +23,17 @@
'max-width': linksWrapMaxWidth + 'px'
} : {}"
>
-
+
diff --git a/src/.vuepress/theme/package.json b/src/.vuepress/theme/package.json
index ba86237080..3411e78a7e 100644
--- a/src/.vuepress/theme/package.json
+++ b/src/.vuepress/theme/package.json
@@ -24,7 +24,6 @@
"@vuepress/plugin-active-header-links": "^1.3.1",
"@vuepress/plugin-nprogress": "^1.3.1",
"@vuepress/plugin-search": "^1.3.1",
- "docsearch.js": "^2.5.2",
"lodash": "^4.17.15",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",