Skip to content

Commit 18aef8e

Browse files
committed
Add the algolia search configuration
1 parent 3aeccd1 commit 18aef8e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/main.workflow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ workflow "Deploy to GitHub Pages" {
1111
action "Build and push docs" {
1212
needs = ["Filter branch"]
1313
uses = "clay/docusaurus-github-action/build_deploy@master"
14-
secrets = ["DEPLOY_SSH_KEY"]
14+
secrets = ["DEPLOY_SSH_KEY", "ALGOLIA_API_KEY"]
1515
}

website/siteConfig.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ const siteConfig = {
5454

5555
// Open Graph and Twitter card images.
5656
ogImage: '#99D3DF',
57-
twitterImage: '#99D3DF'
57+
twitterImage: '#99D3DF',
58+
algolia: {
59+
apiKey: process.env.ALGOLIA_API_KEY,
60+
indexName: 'TBD',
61+
algoliaOptions: {} // Optional, if provided by Algolia
62+
}
5863

5964
// Show documentation's last contributor's name.
6065
// enableUpdateBy: true,

0 commit comments

Comments
 (0)