You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/06/24 10:14:19 UTC
(pulsar-site) branch main updated: Revert "Add Ask AI for Pulsar documentation" due to ASF Privacy Policy (#1183)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 1a419457449 Revert "Add Ask AI for Pulsar documentation" due to ASF Privacy Policy (#1183)
1a419457449 is described below
commit 1a419457449c2d5635e5a0d9baa429d49e13f178
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Wed Jun 24 13:14:13 2026 +0300
Revert "Add Ask AI for Pulsar documentation" due to ASF Privacy Policy (#1183)
Reverts PR #1061 due to ASF Privacy Policy. More details at https://infra.apache.org/csp.html. Explicit approval is required for changing CSP.
This reverts commit 6ddab131bdcb692b3db50a5f8e46b78bedd8943e.
---
docusaurus.config.ts | 22 ----------------------
static/.htaccess | 4 ----
2 files changed, 26 deletions(-)
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index b0af3605638..07035e3f681 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -497,28 +497,6 @@ module.exports = async function createConfigAsync() {
scripts: [
{ src: "/js/sine-waves.min.js", async: true },
"/js/matomo-agent.js",
- '/js/custom-script.js',
- {
- async: true,
- src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
- 'data-website-id': '7da3a42b-98f7-4af5-85e9-771d51c21796',
- 'data-modal-title': 'Apache Pulsar AI Assistant',
- 'data-project-name': 'Apache Pulsar',
- 'data-project-logo': 'https://pbs.twimg.com/profile_images/875130220474359809/wFcLUbwd_400x400.jpg',
- 'data-project-color': '#FFFFFF',
- 'data-modal-open-by-default': 'false',
- 'data-bot-protection-mechanism': 'hcaptcha',
- 'data-modal-override-open-id': 'ask-ai-input',
- 'data-modal-override-open-class': 'search-input',
- 'data-user-analytics-fingerprint-enabled': 'true',
- 'data-button-text-color': '#136EC4',
- 'data-modal-example-questions-title': 'Try asking me...',
- 'data-modal-example-questions': 'How to create a topic?,How does message retention work?,What is a Pulsar broker?,How does geo-replication work?',
- 'data-modal-disclaimer': 'This is a custom LLM with access to all Pulsar documentation.',
- 'data-consent-required': true,
- 'data-consent-screen-disclaimer': "By clicking "I agree, let's chat", you consent to the use of the AI assistant in accordance with kapa.ai's Privacy Policy. This service uses reCAPTCHA, which requires your consent to Google Privacy Policy and Terms of Service.",
- 'data-user-analytics-cookie-enabled': false,
- }
],
clientModules: [require.resolve("./matomoClientModule.ts")],
stylesheets: [
diff --git a/static/.htaccess b/static/.htaccess
index 861f80a4e4d..1c97566d634 100755
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -44,7 +44,3 @@ RewriteRule "^contribute/version-policy/?$" "/contribute/release-policy" [R=301,
RewriteRule "^coding-guide/?$" "/contribute/develop-coding-conventions" [R=301,DPI,L]
RewriteRule "^contributing/?$" "/contribute" [R=301,DPI,L]
RewriteRule "^pulsar-manager-release-notes/?$" "/release-notes" [R=301,DPI,L]
-
-<IfModule mod_headers.c>
- Header set Content-Security-Policy "script-src 'self' https://*.algolia.net https://*.algolianet.com https://*.algolia.io widget.kapa.ai www.google.com https://hcaptcha.com https://*.hcaptcha.com https://www.gstatic.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' https://*.algolia.net https://*.algolianet.com https://*.algolia.io proxy.kapa.ai kapa-widget-proxy-la7dkmplpq-uc.a.run.app metrics.kapa.ai https://hcaptcha.com https://*.hcaptcha.com www.google.com; frame-src 'self' w [...]
-</IfModule>
\ No newline at end of file