Doc 1545 kapa (#3422)

This commit is contained in:
Deborah Barnard
2025-08-01 15:09:02 +01:00
committed by GitHub
parent 40fc392591
commit 73f923e052
8 changed files with 117 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
// https://docs.kapa.ai/integrations/website-widget/installation/mkdocs
document.addEventListener("DOMContentLoaded", function () {
var script = document.createElement("script");
script.src = "https://widget.kapa.ai/kapa-widget.bundle.js";
script.setAttribute("data-website-id", "d2598b63-bfa7-4ddd-a0ac-e6c69f4d0653");
script.setAttribute("data-project-name", "n8n");
script.setAttribute("data-project-color", "#EA4B71");
script.setAttribute("data-project-logo", "/_images/assets/n8n-icon-kapa-modal.png");
// Enable non-AI search https://docs.kapa.ai/integrations/website-widget/search
script.setAttribute("data-search-mode-enabled", true);
// Hide the Kapa widget
script.setAttribute("data-button-hide", true);
// Make sure we don't track users, so we don't have to put this behind the cookie widget https://docs.kapa.ai/integrations/website-widget/user-tracking
script.setAttribute("data-user-analytics-cookie-enabled", false);
script.async = true;
document.head.appendChild(script);
});