From 544fcee05f12ed17f178251cb64c4bde641994f6 Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Wed, 23 Oct 2019 09:40:47 -0700 Subject: [PATCH 1/3] 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 --- .gitignore | 5 ----- website/.gitignore | 4 ++++ website/.nvmrc | 2 +- website/siteConfig.js | 12 ++++++++++-- 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 website/.gitignore diff --git a/.gitignore b/.gitignore index eea4b6baa8..69773ea2b4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,3 @@ .DS_Store target/ pom.xml.versionsBackup - -website/translated_docs -website/build/ -website/node_modules -website/i18n/* diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 0000000000..0854ed7425 --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,4 @@ +translated_docs/ +build/ +node_modules/ +i18n/* diff --git a/website/.nvmrc b/website/.nvmrc index 2bf5ad0447..48082f72f0 100644 --- a/website/.nvmrc +++ b/website/.nvmrc @@ -1 +1 @@ -stable +12 diff --git a/website/siteConfig.js b/website/siteConfig.js index 808adc4247..ae4527c80e 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -69,9 +69,17 @@ const siteConfig = { // You may provide arbitrary config keys to be used as needed by your // template. For example, if you need your repo's URL... repoUrl: 'https://github.com/ExpediaGroup/graphql-kotlin', - + // URL for editing docs, usage example: editUrl + 'en/doc1.md' - editUrl: 'https://github.com/ExpediaGroup/graphql-kotlin/tree/master/docs/' + editUrl: 'https://github.com/ExpediaGroup/graphql-kotlin/tree/master/docs/', + + // Agolia DocSearch + // Docusaurus config - https://docusaurus.io/docs/en/search + // Agolis Search Index Config - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json + algolia: { + apiKey: 'b23761059e66eefd46f5f665a2d4537a', + indexName: 'graphql-kotlin' + } }; module.exports = siteConfig; From 863de2921bd6356e3e70519f2c4ab17d19a7cb3f Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Wed, 23 Oct 2019 10:22:46 -0700 Subject: [PATCH 2/3] Update siteConfig.js --- website/siteConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/siteConfig.js b/website/siteConfig.js index ae4527c80e..c6ade08af2 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -75,7 +75,7 @@ const siteConfig = { // Agolia DocSearch // Docusaurus config - https://docusaurus.io/docs/en/search - // Agolis Search Index Config - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json + // Algolia Search Index Config - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json algolia: { apiKey: 'b23761059e66eefd46f5f665a2d4537a', indexName: 'graphql-kotlin' From f6c4a85524130dac8dc89dc357150eb0818c35b4 Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Wed, 23 Oct 2019 10:43:09 -0700 Subject: [PATCH 3/3] Update siteConfig.js --- website/siteConfig.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/website/siteConfig.js b/website/siteConfig.js index c6ade08af2..f0aba1d4bc 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -73,9 +73,8 @@ const siteConfig = { // URL for editing docs, usage example: editUrl + 'en/doc1.md' editUrl: 'https://github.com/ExpediaGroup/graphql-kotlin/tree/master/docs/', - // Agolia DocSearch - // Docusaurus config - https://docusaurus.io/docs/en/search - // Algolia Search Index Config - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json + // Docusaurus search config - https://docusaurus.io/docs/en/search + // Algolia search index - https://github.com/algolia/docsearch-configs/blob/master/configs/graphql-kotlin.json algolia: { apiKey: 'b23761059e66eefd46f5f665a2d4537a', indexName: 'graphql-kotlin'