docs: enable algolia search in production

This commit is contained in:
ULIVZ
2018-11-30 00:58:36 +08:00
parent 0bfd9daab3
commit 02e99ea176
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -127,3 +127,4 @@ exports.bootstrap = function ({
cli.outputHelp()
}
}
+4 -4
View File
@@ -33,10 +33,10 @@ module.exports = ctx => ({
editLinks: true,
docsDir: 'packages/docs/docs',
// #697 Provided by the official algolia team.
// algolia: {
// apiKey: '3a539aab83105f01761a137c61004d85',
// indexName: 'vuepress'
// },
algolia: ctx.isProd ? ({
apiKey: '3a539aab83105f01761a137c61004d85',
indexName: 'vuepress'
}) : null,
locales: {
'/': {
label: 'English',