This is an automated email from the ASF dual-hosted git repository.
davidzollo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git
The following commit(s) were added to refs/heads/main by this push:
new 2bead1602b4c [Docs] Add localized Slack link to AI disclaimer (#554)
2bead1602b4c is described below
commit 2bead1602b4c333fd9d6bb92e4822a8836ec3509
Author: Daniel <[email protected]>
AuthorDate: Mon Oct 12 03:07:21 2026 -0400
[Docs] Add localized Slack link to AI disclaimer (#554)
Co-authored-by: davidzollo <[email protected]>
---
src/theme/Layout/index.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/theme/Layout/index.js b/src/theme/Layout/index.js
index fc4cedcf236a..474048a2e672 100644
--- a/src/theme/Layout/index.js
+++ b/src/theme/Layout/index.js
@@ -23,6 +23,12 @@ import useDocusaurusContext from
'@docusaurus/useDocusaurusContext';
const ASK_AI_TRIGGER_ID = 'st-global-ask-ai-trigger';
const KAPA_PROJECT_COLOR = '#7db9f5';
const KAPA_SHADOW_STYLE_ID = 'st-kapa-shadow-overrides';
+const KAPA_MODAL_DISCLAIMER =
+ 'This is a custom LLM with access to all [SeaTunnel
documentation](https://seatunnel.apache.org/docs/introduction/about).';
+const KAPA_SLACK_PROMPTS = {
+ en: 'If the AI does not solve your problem, join us on Slack for a deeper
discussion:
[https://s.apache.org/seatunnel-slack](https://s.apache.org/seatunnel-slack).',
+ zh: '如果 AI 没有解决你的问题,欢迎加入 Slack 进行更深入的交流
[https://s.apache.org/seatunnel-slack](https://s.apache.org/seatunnel-slack)',
+};
const KAPA_SHADOW_OVERRIDES = `
#kapa-widget-root [data-modal-content],
@@ -233,6 +239,7 @@ export default function LayoutWrapper(props) {
: i18n.currentLocale === 'zh-CN'
? 'zh'
: 'en';
+ const modalDisclaimer = `${KAPA_MODAL_DISCLAIMER}
${KAPA_SLACK_PROMPTS[widgetLanguage]}`;
// Inject the global Ask AI shortcut once so docs pages and custom pages
stay consistent.
return (
@@ -250,7 +257,7 @@ export default function LayoutWrapper(props) {
data-button-hide="true"
data-modal-border-radius="34px"
data-modal-override-open-id-ask-ai={ASK_AI_TRIGGER_ID}
- data-modal-disclaimer="This is a custom LLM with access to all
[SeaTunnel
documentation](https://seatunnel.apache.org/docs/introduction/about)."
+ data-modal-disclaimer={modalDisclaimer}
data-modal-disclaimer-bg-color="#f4fbff"
data-modal-disclaimer-text-color="#5b6b7e"
data-query-input-border-color="#d9e8f5"
@@ -277,4 +284,4 @@ export default function LayoutWrapper(props) {
<GlobalAskAi />
</>
);
-}
\ No newline at end of file
+}