From a0a46bd7b01a0533ae821ee431ece73d9b85c4b8 Mon Sep 17 00:00:00 2001 From: Oscar Polanco Date: Tue, 21 May 2019 14:54:00 -0400 Subject: [PATCH] Add search config for the docs --- .github/main.workflow | 2 +- website/siteConfig.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 0a576d12..c379e691 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -18,5 +18,5 @@ action "Build and push docs" { needs = ["Update version"] uses = "clay/docusaurus-github-action@master" args="deploy" - secrets = ["DEPLOY_SSH_KEY"] + secrets = ["DEPLOY_SSH_KEY", "ALGOLIA_API_KEY"] } diff --git a/website/siteConfig.js b/website/siteConfig.js index 9f30738c..9b1164f6 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -54,7 +54,12 @@ const siteConfig = { // Open Graph and Twitter card images. ogImage: '', - twitterImage: '' + twitterImage: '', + algolia: { + apiKey: process.env.ALGOLIA_API_KEY, + indexName: 'TBD', + algoliaOptions: {} // Optional, if provided by Algolia + } }; module.exports = siteConfig;