浏览代码

docs: enabling DocSearch https://github.com/algolia/docsearch-configs/commit/0b171ddf626dac501b2d9bf4a80e79613c874918 (#1472)

Sylvain Pace 6 年之前
父节点
当前提交
31e4fbc8ac
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/.vuepress/config.js

+ 4 - 0
docs/.vuepress/config.js

@@ -39,6 +39,10 @@ module.exports = {
   serviceWorker: true,
   serviceWorker: true,
   theme: 'vue',
   theme: 'vue',
   themeConfig: {
   themeConfig: {
+    algolia: {
+      apiKey: '97f135e4b5f5487fb53f0f2dae8db59d',
+      indexName: 'vuex',
+    },
     repo: 'vuejs/vuex',
     repo: 'vuejs/vuex',
     docsDir: 'docs',
     docsDir: 'docs',
     locales: {
     locales: {