This is an automated email from the ASF dual-hosted git repository. critas pushed a commit to branch feat_kapa in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
commit 572beb9d643fa1d1b5da9ce95916f793dac47f44 Author: CritasWang <[email protected]> AuthorDate: Tue Jan 6 11:18:16 2026 +0800 add ask ai by kapa --- package.json | 2 +- src/.vuepress/config.ts | 37 +++++++++++++++++++++++++++++++++++++ src/.vuepress/public/slogo.png | Bin 0 -> 7866 bytes 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 85db8570..9a97c78c 100644 --- a/package.json +++ b/package.json @@ -48,5 +48,5 @@ "singleQuote": true, "trailingComma": "all" }, - "packageManager": "[email protected]" + "packageManager": "[email protected]" } diff --git a/src/.vuepress/config.ts b/src/.vuepress/config.ts index f3ba6d66..0ba66374 100644 --- a/src/.vuepress/config.ts +++ b/src/.vuepress/config.ts @@ -84,6 +84,43 @@ _paq.push(['enableLinkTracking']); })(); `, ], + [ + 'script', + { + async: true, + src: 'https://widget.kapa.ai/kapa-widget.bundle.js', + 'data-website-id': '2d37bfdd-8d98-40ba-9223-9d4f81bfb327', + // 'data-language': 'zh', + 'data-project-name': 'Apache IoTDB', + 'data-project-color': '#9E2878', + 'data-project-logo': 'https://iotdb.apache.org/slogo.png', + 'data-button-position-right': '16px', + 'data-button-position-bottom': '120px', + 'data-button-height': '50px', + 'data-button-width': '50px', + 'data-button-text': 'Ask', + 'data-modal-image-width': '150px', + 'data-modal-title': 'AI Docs', + // 'data-modal-disclaimer': + // 'This is a custom LLM with access to all [Kapa documentation](https://docs.kapa.ai).', + // 'data-modal-example-questions': + // 'How do I get started?,How to add example questions?', + 'data-user-analytics-fingerprint-enabled': 'true', + // 'data-modal-x-offset': '0', + // 'data-modal-y-offset': '0', + // 'data-modal-with-overlay': 'false', + // 'data-modal-inner-flex-direction': 'column', + // 'data-modal-inner-justify-content': 'end', + // 'data-modal-inner-max-width': '500px', + // 'data-modal-inner-position-left': 'auto', + // 'data-modal-inner-position-right': '0', + // 'data-modal-inner-position-bottom': '0', + // 'data-modal-inner-position-top': '0', + // 'data-modal-size': '100vh', + // 'data-modal-lock-scroll': 'false', + // 'data-modal-header-bg-color': '#fff', + }, + ], ], shouldPrefetch: false, diff --git a/src/.vuepress/public/slogo.png b/src/.vuepress/public/slogo.png new file mode 100644 index 00000000..1bee9c59 Binary files /dev/null and b/src/.vuepress/public/slogo.png differ
