From 93443e664e51945efaab7227ba5c6326a8e5500b Mon Sep 17 00:00:00 2001 From: Oscar Polanco Date: Fri, 26 Jul 2019 15:27:29 -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 4144e83..fbb1bea 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -15,5 +15,5 @@ action "Build and push docs" { env = { PROJECT_NAME = "clay" } - secrets = ["DEPLOY_SSH_KEY"] + secrets = ["DEPLOY_SSH_KEY", "ALGOLIA_API_KEY"] } diff --git a/website/siteConfig.js b/website/siteConfig.js index ada0628..301cd79 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -95,7 +95,12 @@ const siteConfig = { // template. For example, if you need your repo's URL... // repoUrl: 'https://github.com/facebook/test-site', - cname: 'docs.clayplatform.com' + cname: 'docs.clayplatform.com', + algolia: { + apiKey: process.env.ALGOLIA_API_KEY, + indexName: 'TBD', + algoliaOptions: {} // Optional, if provided by Algolia + } }; module.exports = siteConfig;