From 89c9caf7691e0509be1556c8b9a2634964db1928 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Wed, 4 Feb 2026 13:43:57 +0000 Subject: [PATCH 1/2] Revert "docs: kapa ai widget (#5851)" This reverts commit 07b59511 --- docs/docusaurus.config.ts | 13 +------------ docs/src/theme/Layout/index.js | 10 ---------- docs/static/js/crisp-chat.js | 9 +++++++++ 3 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 docs/src/theme/Layout/index.js create mode 100644 docs/static/js/crisp-chat.js diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 0161969dbc30..47ec7aa715db 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -313,24 +313,13 @@ const config: Config = { ], scripts: [ + '/js/crisp-chat.js', { src: '//js-eu1.hs-scripts.com/143451822.js', async: true, defer: true, id: 'hs-script-loader', }, - { - src: "https://widget.kapa.ai/kapa-widget.bundle.js", - "data-website-id": "bbb5a478-1363-4c1e-84b5-cdba2c58e5ad", - "data-project-name": "Flagsmith", - "data-project-color": "#6633FF", - "data-project-logo": "http://docs.flagsmith.com/img/logo.svg", - "data-answer-cta-button-enabled": "true", - "data-answer-cta-button-link": "/support/", - "data-answer-cta-button-text": "Still need help? Reach out to our support team", - "data-modal-disclaimer": "Results are AI generated from our product documentation. [Contact Support to speak to a human](/support).", - async: true, - }, ], clientModules: [ diff --git a/docs/src/theme/Layout/index.js b/docs/src/theme/Layout/index.js deleted file mode 100644 index 88a25f24ed47..000000000000 --- a/docs/src/theme/Layout/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import OriginalLayout from '@theme-original/Layout'; - -export default function Layout(props) { - return ( - <> - - - ); -} diff --git a/docs/static/js/crisp-chat.js b/docs/static/js/crisp-chat.js new file mode 100644 index 000000000000..d65ea10869f5 --- /dev/null +++ b/docs/static/js/crisp-chat.js @@ -0,0 +1,9 @@ +window.$crisp = []; +window.CRISP_WEBSITE_ID = '8857f89e-0eb5-4263-ab49-a293872b6c19'; +(function () { + d = document; + s = d.createElement('script'); + s.src = 'https://client.crisp.chat/l.js'; + s.async = 1; + d.getElementsByTagName('head')[0].appendChild(s); +})(); From 183257cbac390fc525043f396e845b8ac82ce321 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Wed, 4 Feb 2026 13:47:15 +0000 Subject: [PATCH 2/2] Revert changes related to crisp that were included in the revert commit --- docs/docusaurus.config.ts | 1 - docs/src/theme/Layout/index.js | 10 ++++++++++ docs/static/js/crisp-chat.js | 9 --------- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 docs/src/theme/Layout/index.js delete mode 100644 docs/static/js/crisp-chat.js diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 47ec7aa715db..4788e76fb322 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -313,7 +313,6 @@ const config: Config = { ], scripts: [ - '/js/crisp-chat.js', { src: '//js-eu1.hs-scripts.com/143451822.js', async: true, diff --git a/docs/src/theme/Layout/index.js b/docs/src/theme/Layout/index.js new file mode 100644 index 000000000000..88a25f24ed47 --- /dev/null +++ b/docs/src/theme/Layout/index.js @@ -0,0 +1,10 @@ +import React from 'react'; +import OriginalLayout from '@theme-original/Layout'; + +export default function Layout(props) { + return ( + <> + + + ); +} diff --git a/docs/static/js/crisp-chat.js b/docs/static/js/crisp-chat.js deleted file mode 100644 index d65ea10869f5..000000000000 --- a/docs/static/js/crisp-chat.js +++ /dev/null @@ -1,9 +0,0 @@ -window.$crisp = []; -window.CRISP_WEBSITE_ID = '8857f89e-0eb5-4263-ab49-a293872b6c19'; -(function () { - d = document; - s = d.createElement('script'); - s.src = 'https://client.crisp.chat/l.js'; - s.async = 1; - d.getElementsByTagName('head')[0].appendChild(s); -})();