diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 41c30bed..970cec81 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -17,6 +17,12 @@ module.exports = { placement: 'vuejsorg' }, + algolia: { + apiKey: 'c57105e511faa5558547599f120ceeba', + indexName: 'vitepress' + // algoliaOptions: { facetFilters: ['tags:guide,api'] } + }, + nav: [ { text: 'Guide', link: '/' }, { text: 'Config Reference', link: '/config/basics' }, diff --git a/package.json b/package.json index 5dfb6405..17888351 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,11 @@ "url": "https://github.com/vuejs/vitepress/issues" }, "dependencies": { + "@docsearch/css": "^1.0.0-alpha.28", + "@docsearch/js": "^1.0.0-alpha.28", "@vue/compiler-sfc": "^3.0.3", "@vue/server-renderer": "^3.0.3", + "algoliasearch": "^4.8.1", "chalk": "^4.1.0", "debug": "^4.1.1", "diacritics": "^1.3.0", diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index cd5598b8..f5a388e0 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -3,7 +3,12 @@