Skip to content

Commit

Permalink
Adding algolia search and getting indexes from env file
Browse files Browse the repository at this point in the history
  • Loading branch information
SeBassTian23 committed Jun 21, 2019
1 parent 6f50e73 commit db3ff00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/.vuepress/config.js
Expand Up @@ -243,12 +243,16 @@ module.exports = {
docsDir: 'docs',
docsBranch: 'development',
editLinks: true,
editLinkText: 'Help us improve this page!'
editLinkText: 'Help us improve this page!',
algolia: {
apiKey: (require('./.env.json')['algolia-key'] || ''),
indexName: (require('./.env.json')['algolia-idxName'] || '')
}
},
plugins: [
['@vuepress/back-to-top', true ],
['@vuepress/google-analytics', {
'ga': 'UA-55158217-2'
'ga': (require('./.env.json')['ga-key'] || '')
}],
['@vuepress/pwa', {
serviceWorker: true,
Expand Down

0 comments on commit db3ff00

Please sign in to comment.