Skip to content

Commit e990fb4

Browse files
committed
Add the algolia search configuration
1 parent 22e5b9a commit e990fb4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.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@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
@@ -53,7 +53,12 @@ const siteConfig = {
5353

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

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

0 commit comments

Comments
 (0)