Skip to content

Commit 95da43a

Browse files
committed
Add the algolia search configuration
1 parent a00ad42 commit 95da43a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/main.workflow

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ workflow "Deploy to GitHub Pages" {
99
}
1010

1111
action "Update version" {
12-
needs = ["Filter branch"]
1312
uses = "clay/docusaurus-github-action@master"
1413
args = "version"
1514
}
@@ -18,5 +17,5 @@ action "Update version" {
1817
needs = ["Update version"]
1918
uses = "clay/docusaurus-github-action@master"
2019
args = "deploy"
21-
secrets = ["DEPLOY_SSH_KEY"]
20+
secrets = ["DEPLOY_SSH_KEY", "ALGOLIA_API_KEY"]
2221
}

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)