From d78eb7ceb527944a5d5a1618f68cb8e53db38dfe Mon Sep 17 00:00:00 2001 From: unatasha8 Date: Fri, 17 Jul 2026 09:56:10 -0700 Subject: [PATCH] docs: config Kapa to open sidebar --- src/theme/KapaWidget.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme/KapaWidget.tsx b/src/theme/KapaWidget.tsx index 44e58f8fb..0cddb77c6 100644 --- a/src/theme/KapaWidget.tsx +++ b/src/theme/KapaWidget.tsx @@ -34,11 +34,12 @@ function injectKapaScript() { script.setAttribute("data-website-id", "e89e7663-df2c-4c7f-974a-1bf8accdd615") script.setAttribute("data-project-name", "Ory") script.setAttribute("data-project-color", "#1A237E") + script.setAttribute("data-view-mode", "sidebar") script.setAttribute( "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.", ) - script.setAttribute("data-modal-title", "Ory AI Copilot") + script.setAttribute("data-modal-title", "Ask AI") script.setAttribute("data-button-text", "Ask AI") script.setAttribute("data-project-logo", "/docs/img/kapa-logo.png") script.setAttribute("data-consent-required", "true")