From 960cdf3d5c82e3bba05654ce162bf03c00e30952 Mon Sep 17 00:00:00 2001 From: Oscar Polanco Date: Thu, 25 Apr 2019 15:06:53 -0400 Subject: [PATCH] Add the algolia search configuration --- .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 29665da..0f9e164 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -18,5 +18,5 @@ action "Update version" { 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 afca8e5..0831ad9 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -54,7 +54,12 @@ const siteConfig = { // Open Graph and Twitter card images. ogImage: '#99D3DF', - twitterImage: '#99D3DF' + twitterImage: '#99D3DF', + algolia: { + apiKey: process.env.ALGOLIA_API_KEY, + indexName: 'TBD', + algoliaOptions: {} // Optional, if provided by Algolia + } // Show documentation's last contributor's name. // enableUpdateBy: true,