This is an automated email from the ASF dual-hosted git repository.

wuchong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss.git


The following commit(s) were added to refs/heads/main by this push:
     new 38943d56f Revert "[fluss/ai agent] enable ai doc agent on website 
(#3152)" (#3216)
38943d56f is described below

commit 38943d56ffebde6f5260908876b92a69d1a257c1
Author: MehulBatra <[email protected]>
AuthorDate: Thu May 7 08:29:48 2026 +0530

    Revert "[fluss/ai agent] enable ai doc agent on website (#3152)" (#3216)
    
    This reverts commit b33d84885c2fea85fd1cd43afdb1677a7ed81e47.
---
 website/docusaurus.config.ts | 29 +---------------
 website/src/css/custom.css   | 82 --------------------------------------------
 2 files changed, 1 insertion(+), 110 deletions(-)

diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index d4c18a838..a7853f1ef 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -20,8 +20,7 @@ import type {Config} from '@docusaurus/types';
 import type * as Preset from '@docusaurus/preset-classic';
 import lightTheme from './src/utils/prismLight';
 import versionReplace from './src/plugins/remark-version-replace/index';
-import {loadVersionData} from './src/utils/versionData';
-
+import { loadVersionData } from './src/utils/versionData';
 const { versionsMap, latestVersion } = loadVersionData();
 
 const config: Config = {
@@ -48,27 +47,6 @@ const config: Config = {
   // Blog content is cloned from a separate repo via setup_blog.sh
   staticDirectories: ['static', 'blog/static'],
 
-  scripts: [
-    {
-      src: 'https://widget.kapa.ai/kapa-widget.bundle.js',
-      async: true,
-      'data-website-id': '40ccde97-65ed-46d8-81f2-fe8a8a31f9d9',
-      'data-project-name': 'Apache Fluss',
-      'data-project-color': '#06b6d4',
-      'data-modal-header-bg-color': '#2563eb',
-      'data-modal-title-color': '#ffffff',
-      'data-project-logo': 
'https://fluss.apache.org/img/logo/svg/white_color_logo_notext.svg',
-      'data-button-text': 'Ask AI',
-      'data-button-hide': 'true',
-      'data-modal-override-open-class-ask-ai': 'navbar-ask-ai',
-      'data-modal-title': 'Ask Apache Fluss AI',
-      'data-modal-example-questions':
-        'What is Apache Fluss?,How do I create a Log & PK table?,How do I use 
change data feed?,How do I configure streaming lakehouse?',
-      'data-modal-disclaimer':
-        'This is an AI assistant trained on Apache Fluss documentation, 
codebase. Answers are AI-generated and may be inaccurate, verify against the 
official docs.',
-    },
-  ],
-
   // Even if you don't use internationalization, you can use this field to set
   // useful metadata like html lang. For example, if your site is Chinese, you
   // may want to replace "en" with "zh-Hans".
@@ -216,11 +194,6 @@ const config: Config = {
         {to: '/community/welcome', label: 'Community', position: 'left'},
         {to: '/roadmap', label: 'Roadmap', position: 'left'},
         {to: '/downloads', label: 'Downloads', position: 'left'},
-        {
-          type: 'html',
-          position: 'right',
-          value: '<button class="navbar-ask-ai" type="button" aria-label="Ask 
AI">Ask AI</button>',
-        },
         {
             label: 'ASF', position: 'right', items: [
                 {to: 'https://www.apache.org/', label: 'Foundation'},
diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index 542987297..eaa837553 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -307,85 +307,3 @@
 .hidden {
     display: none !important;
 }
-
-/* Fallback in case data-button-hide is not honored by the Kapa widget:
-   hide the floating launcher container while keeping the modal portal intact. 
*/
-#kapa-widget-container > button,
-#kapa-widget-container > div:first-child:not([role="dialog"]) > button {
-    display: none !important;
-}
-
-.navbar-ask-ai {
-    position: relative;
-    display: inline-flex;
-    align-items: center;
-    gap: 7px;
-    margin: 0 8px;
-    padding: 7px 16px;
-    border: 0;
-    border-radius: 999px;
-    background: linear-gradient(120deg, #06b6d4 0%, #2563eb 50%, #3b82f6 100%);
-    background-size: 180% 180%;
-    color: #ffffff;
-    font-family: inherit;
-    font-size: 0.9rem;
-    font-weight: 700;
-    letter-spacing: 0.02em;
-    cursor: pointer;
-    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.45),
-                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
-    animation: navbar-ask-ai-shimmer 5s ease-in-out infinite,
-               navbar-ask-ai-pulse 2.6s ease-in-out infinite;
-    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
-}
-
-.navbar-ask-ai::before {
-    content: '';
-    width: 14px;
-    height: 14px;
-    background-color: #ffffff;
-    -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg 
xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 
L13.6 8.4 L20.5 10 L13.6 11.6 L12 18.5 L10.4 11.6 L3.5 10 L10.4 8.4 Z M19 15 
L19.8 17.2 L22 18 L19.8 18.8 L19 21 L18.2 18.8 L16 18 L18.2 17.2 Z' 
fill='white'/%3E%3C/svg%3E");
-    mask-image: url("data:image/svg+xml;utf8,%3Csvg 
xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 
L13.6 8.4 L20.5 10 L13.6 11.6 L12 18.5 L10.4 11.6 L3.5 10 L10.4 8.4 Z M19 15 
L19.8 17.2 L22 18 L19.8 18.8 L19 21 L18.2 18.8 L16 18 L18.2 17.2 Z' 
fill='white'/%3E%3C/svg%3E");
-    -webkit-mask-repeat: no-repeat;
-    mask-repeat: no-repeat;
-    -webkit-mask-size: contain;
-    mask-size: contain;
-    flex-shrink: 0;
-}
-
-.navbar-ask-ai:hover {
-    transform: translateY(-1px);
-    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.65),
-                0 0 0 1px rgba(255, 255, 255, 0.18) inset;
-    filter: brightness(1.08) saturate(1.1);
-    animation-play-state: paused;
-}
-
-.navbar-ask-ai:focus-visible {
-    outline: 2px solid #ffffff;
-    outline-offset: 2px;
-    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.5);
-}
-
-@keyframes navbar-ask-ai-shimmer {
-    0%, 100% { background-position: 0% 50%; }
-    50%      { background-position: 100% 50%; }
-}
-
-@keyframes navbar-ask-ai-pulse {
-    0%, 100% { box-shadow: 0 2px 10px rgba(6, 182, 212, 0.45),
-                           0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
-    50%      { box-shadow: 0 2px 18px rgba(6, 182, 212, 0.75),
-                           0 0 0 1px rgba(255, 255, 255, 0.14) inset; }
-}
-
-@media (prefers-reduced-motion: reduce) {
-    .navbar-ask-ai { animation: none; }
-}
-
-@media (max-width: 996px) {
-    .navbar-ask-ai {
-        padding: 5px 10px;
-        font-size: 0.85rem;
-    }
-}

Reply via email to