Skip to content

Commit 163a829

Browse files
authored
Add Algolia doc search to the website (#453)
* Add Algolia doc search to the website We now have the docs search enabled with an index being updated every 24h. This is a public key that anyone can use to index our doc search * Update siteConfig.js * Update siteConfig.js
1 parent 4abb38f commit 163a829

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@
33
.DS_Store
44
target/
55
pom.xml.versionsBackup
6-
7-
website/translated_docs
8-
website/build/
9-
website/node_modules
10-
website/i18n/*

website/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
translated_docs/
2+
build/
3+
node_modules/
4+
i18n/*

website/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stable
1+
12

website/siteConfig.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ const siteConfig = {
6969
// You may provide arbitrary config keys to be used as needed by your
7070
// template. For example, if you need your repo's URL...
7171
repoUrl: 'https://github.com/ExpediaGroup/graphql-kotlin',
72-
72+
7373
// URL for editing docs, usage example: editUrl + 'en/doc1.md'
74-
editUrl: 'https://github.com/ExpediaGroup/graphql-kotlin/tree/master/docs/'
74+
editUrl: 'https://github.com/ExpediaGroup/graphql-kotlin/tree/master/docs/',
75+
76+
// Docusaurus search config - https://docusaurus.io/docs/en/search
77+
// Algolia search index - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json
78+
algolia: {
79+
apiKey: 'b23761059e66eefd46f5f665a2d4537a',
80+
indexName: 'graphql-kotlin'
81+
}
7582
};
7683

7784
module.exports = siteConfig;

0 commit comments

Comments
 (0)