From 428c4efd99a1d9b3a7415e4aa54018aa2555c5fc Mon Sep 17 00:00:00 2001 From: Vincent Kraus Date: Wed, 26 Jul 2023 11:27:40 +0200 Subject: [PATCH 1/2] fix: add bot again --- docusaurus.config.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 07e8ae6b7..a47eb5033 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -245,17 +245,18 @@ const config = { scripts: [ // Needed as a workaround for https://answers.netlify.com/t/trailing-slash-missing-on-proxied-netlify-site/36367 "/docs/scripts/redirect.js", - // Disabled until widget size is fixed. - // - // { - // src: "https://widget.kapa.ai/kapa-widget.bundle.js", - // "data-website-id": "e89e7663-df2c-4c7f-974a-1bf8accdd615", - // "data-project-name": "Ory", - // "data-project-color": "#1A237E", - // "data-project-logo": - // "https://assets.website-files.com/627ba6588811eca90ffd6f2a/6282a6b11450b482db646ed2_hydra.png", - // async: true, - // }, + { + src: "https://widget.kapa.ai/kapa-widget.bundle.js", + "data-website-id": "e89e7663-df2c-4c7f-974a-1bf8accdd615", + "data-project-name": "Ory", + "data-project-color": "#1A237E", + "data-modal-disclaimer": + "By utilizing this chatbot, you consent to the collection and transmission of data to kapa.ai, which may include your IP address. Please be advised that your privacy and data protection are of utmost importance to us. We assure you that any data collected will be handled in compliance with applicable laws and regulations. For further details on how your data is processed and used, we encourage you to review our Privacy Policy. If you do not agree with these terms, we kindly request that you refrain from using this chatbot.", + "data-project-logo": + "https://assets.website-files.com/627ba6588811eca90ffd6f2a/6282a6b11450b482db646ed2_hydra.png", + async: true, + defer: true, + }, ], } From fc492714bd778496be23cd719f5b45ddf0fe1eab Mon Sep 17 00:00:00 2001 From: Vincent Kraus Date: Thu, 27 Jul 2023 09:27:50 +0200 Subject: [PATCH 2/2] fix: defer kapa --- docusaurus.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a47eb5033..7dda132d4 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -254,7 +254,6 @@ const config = { "By utilizing this chatbot, you consent to the collection and transmission of data to kapa.ai, which may include your IP address. Please be advised that your privacy and data protection are of utmost importance to us. We assure you that any data collected will be handled in compliance with applicable laws and regulations. For further details on how your data is processed and used, we encourage you to review our Privacy Policy. If you do not agree with these terms, we kindly request that you refrain from using this chatbot.", "data-project-logo": "https://assets.website-files.com/627ba6588811eca90ffd6f2a/6282a6b11450b482db646ed2_hydra.png", - async: true, defer: true, }, ],