From 7187465043c4224b7dae37442043d45854de1b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=A3=E6=B2=BE=E4=B8=8D=E8=B6=B3=E6=83=9C?= Date: Tue, 17 Jun 2025 16:13:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20AI=20=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 衣沾不足惜 --- ...5\351\251\254\345\273\272\344\273\223.mdx" | 6 ----- docusaurus.config.ts | 8 +------ src/components/chat-bot.jsx | 24 ------------------- src/theme/Navbar/index.tsx | 6 +---- 4 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 "docs/\351\207\221\347\211\214\345\256\242\346\234\215\351\251\254\345\273\272\344\273\223.mdx" delete mode 100644 src/components/chat-bot.jsx diff --git "a/docs/\351\207\221\347\211\214\345\256\242\346\234\215\351\251\254\345\273\272\344\273\223.mdx" "b/docs/\351\207\221\347\211\214\345\256\242\346\234\215\351\251\254\345\273\272\344\273\223.mdx" deleted file mode 100644 index 0eac570..0000000 --- "a/docs/\351\207\221\347\211\214\345\256\242\346\234\215\351\251\254\345\273\272\344\273\223.mdx" +++ /dev/null @@ -1,6 +0,0 @@ -import ChatBot from '@site/src/components/chat-bot'; - -- AI 输出,仅用于文档参考,不代表官方观点 -- 请登录 Gitee AI 后使用 - - \ No newline at end of file diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 0379c30..20fd9ee 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -186,13 +186,7 @@ const config: Config = { label: '文档', to: '/docs/getting-started/intro', className: 'gai-navbar-item', - activeBaseRegex: '^/docs(?!/金牌客服马建仓).*', - }, - { - label: 'AI 客服', - to: '/docs/金牌客服马建仓', - target: '_self', - className: 'gai-navbar-item', + activeBaseRegex: '^/docs.*', }, ], }, diff --git a/src/components/chat-bot.jsx b/src/components/chat-bot.jsx deleted file mode 100644 index 63b6254..0000000 --- a/src/components/chat-bot.jsx +++ /dev/null @@ -1,24 +0,0 @@ -import React, { useEffect, useRef } from 'react'; -export default function ChatBot({ children, color }) { - const chatBotRef = useRef(null); - - useEffect(() => { - const container = document.querySelector('.container'); - const width = container ? getComputedStyle(container, null).width : "100%"; - if (chatBotRef.current) { - chatBotRef.current.style.width = width; - } - }, []); - - return ( - - ); -} \ No newline at end of file diff --git a/src/theme/Navbar/index.tsx b/src/theme/Navbar/index.tsx index 59db45e..2c363fc 100644 --- a/src/theme/Navbar/index.tsx +++ b/src/theme/Navbar/index.tsx @@ -13,11 +13,7 @@ export default function NavBar(): JSX.Element { }; const isIntroActive = () => { - return ( - isActive('/docs') && - !isActive('/docs/openapi/') && - !isActive('/docs/金牌客服马建仓') - ); + return isActive('/docs') && !isActive('/docs/openapi/'); }; return ( <> -- Gitee