From 56710081875f422b2ec65d6199749492d4fc7f49 Mon Sep 17 00:00:00 2001 From: Epiphyllum Date: Mon, 23 Feb 2026 22:49:15 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E5=80=99=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=9A=84=E6=96=87=E6=9C=AC=E6=88=AA=E6=96=AD=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 1ac7b36..a487b67 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -80,7 +80,17 @@ export default defineConfig({ assistantId: 'LPOC8VnwcNjG' }, searchParameters: { - facetFilters: [] + facetFilters: [], + attributesToSnippet: [ + "hierarchy.lvl1:15", + "hierarchy.lvl2:15", + "hierarchy.lvl3:15", + "hierarchy.lvl4:15", + "hierarchy.lvl5:15", + "hierarchy.lvl6:15", + "content:60" + ], + snippetEllipsisText: "" }, locales: { root: { From 6cc0f9d3516519a465a742c536a085faa831a7d2 Mon Sep 17 00:00:00 2001 From: Epiphyllum Date: Tue, 24 Feb 2026 00:42:57 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=B8=BAAI=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 107 ++++++++++++++++++++++++++++---- docs/.vitepress/theme/style.css | 4 ++ 2 files changed, 98 insertions(+), 13 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index a487b67..777a010 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -77,20 +77,29 @@ export default defineConfig({ apiKey: 'ac690e86bfae8e8965ca0eb54624758b', indexName: 'index_ab_vitepress_crawls', askAi: { - assistantId: 'LPOC8VnwcNjG' + assistantId: 'LPOC8VnwcNjG', + sidePanel: { + // 镜像 @docsearch/sidepanel-js SidepanelProps API + panel: { + variant: 'floating', // 或 'inline' + side: 'right', + width: '360px', + expandedWidth: '580px', + suggestedQuestions: true, + } + } }, searchParameters: { facetFilters: [], - attributesToSnippet: [ - "hierarchy.lvl1:15", - "hierarchy.lvl2:15", - "hierarchy.lvl3:15", - "hierarchy.lvl4:15", - "hierarchy.lvl5:15", - "hierarchy.lvl6:15", - "content:60" - ], - snippetEllipsisText: "" + attributesToSnippet: [ + "hierarchy.lvl1:15", + "hierarchy.lvl2:15", + "hierarchy.lvl3:15", + "hierarchy.lvl4:15", + "hierarchy.lvl5:15", + "hierarchy.lvl6:15", + "content:50" + ], }, locales: { root: { @@ -114,6 +123,11 @@ export default defineConfig({ searchInputLabel: '搜索内容', backToKeywordSearchButtonText: '返回关键词搜索', backToKeywordSearchButtonAriaLabel: '返回关键词搜索', + newConversationPlaceholder: '提问', + conversationHistoryTitle: '我的对话历史', + startNewConversationText: '开始新的对话', + viewConversationHistoryText: '对话历史', + threadDepthErrorPlaceholder: '对话已达上限' }, startScreen: { recentSearchesTitle: '搜索历史', @@ -125,6 +139,11 @@ export default defineConfig({ recentConversationsTitle: '最近的对话', removeRecentConversationButtonTitle: '从历史记录中删除对话', }, + newConversation: { + newConversationTitle: '有什么想问的吗?', + newConversationDescription: + '我会帮助您搜索文档,帮您快速了解网站内容。' + }, errorScreen: { titleText: '无法获取结果', helpText: '请检查网络连接', @@ -143,9 +162,19 @@ export default defineConfig({ disclaimerText: '结果由 AI 生成,请注意核查。', relatedSourcesText: '相关来源', thinkingText: '思考中...', + copyButtonText: '复制', + copyButtonCopiedText: '已复制!', + copyButtonTitle: '复制', + likeButtonTitle: '喜欢', + dislikeButtonTitle: '不喜欢', + thanksForFeedbackText: '感谢你的反馈!', preToolCallText: '搜索中...', duringToolCallText: '搜索 ', afterToolCallText: '已搜索', + stoppedStreamingText: '你已停止此回复', + errorTitleText: '聊天错误', + threadDepthExceededMessage: '由于对话过长,为保持回答准确,此对话已关闭。', + startNewConversationButtonText: '开始新的对话' }, footer: { selectText: '选择', @@ -158,9 +187,61 @@ export default defineConfig({ backToSearchText: '返回搜索', closeKeyAriaLabel: 'Esc 键', poweredByText: '搜索提供', - } + }, } - } + }, + askAi: { + sidePanel: { + button: { + translations: { + buttonText: '询问 AI', + buttonAriaLabel: '询问 AI' + } + }, + panel: { + translations: { + header: { + title: '询问 AI', + conversationHistoryTitle: '我的对话历史', + newConversationText: '开始新的对话', + viewConversationHistoryText: '对话历史' + }, + promptForm: { + promptPlaceholderText: '在此处输入问题', + promptAnsweringText: '正在回答...', + promptAskAnotherQuestionText: '再问一个问题', + promptDisclaimerText: '回答由 AI 生成,可能会出错。', + promptLabelText: '按回车发送,Shift+回车换行。', + promptAriaLabelText: '问题输入框' + }, + conversationScreen: { + preToolCallText: '搜索中...', + searchingText: '搜索中...', + toolCallResultText: '已搜索', + conversationDisclaimer: '回答由 AI 生成,可能会出错。请核实。', + reasoningText: '推理中...', + thinkingText: '思考中...', + relatedSourcesText: '相关来源', + stoppedStreamingText: '你已停止此回复', + copyButtonText: '复制', + copyButtonCopiedText: '已复制!', + likeButtonTitle: '喜欢', + dislikeButtonTitle: '不喜欢', + thanksForFeedbackText: '感谢你的反馈!', + errorTitleText: '聊天错误' + }, + newConversationScreen: { + titleText: '有什么想问的吗?', + introductionText: + '我可以搜索文档,帮您快速了解网站内容。' + }, + logo: { + poweredByText: '由…提供支持' + } + } + } + } + }, } } } diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 555b8c0..676d5af 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -102,3 +102,7 @@ .DocSearch-Action.DocSearch-AskAi-Return { background-color: transparent !important; } + +.VPNavBarSearchButton { + display: none !important; +} \ No newline at end of file From af37cf219af28e490667f3e8a7490338cff36bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=9D=82=E7=A5=9E=E5=A5=88=E5=AD=90?= Date: Tue, 24 Feb 2026 01:21:21 +0800 Subject: [PATCH 3/6] Refactor AI search configuration and translations Updated search configuration and localized text for AI assistant. --- docs/.vitepress/config.mts | 91 ++++++++++---------------------------- 1 file changed, 24 insertions(+), 67 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 777a010..d6d9246 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -73,33 +73,25 @@ export default defineConfig({ search: { provider: 'algolia', options: { - appId: '116OHOGKSO', - apiKey: 'ac690e86bfae8e8965ca0eb54624758b', - indexName: 'index_ab_vitepress_crawls', + mode: 'sidePanel', askAi: { assistantId: 'LPOC8VnwcNjG', - sidePanel: { - // 镜像 @docsearch/sidepanel-js SidepanelProps API - panel: { - variant: 'floating', // 或 'inline' - side: 'right', - width: '360px', - expandedWidth: '580px', - suggestedQuestions: true, - } - } + appId: '116OHOGKSO', + apiKey: 'ac690e86bfae8e8965ca0eb54624758b', + indexName: 'index_ab_vitepress_crawls', + sidePanel: true, }, searchParameters: { facetFilters: [], - attributesToSnippet: [ - "hierarchy.lvl1:15", - "hierarchy.lvl2:15", - "hierarchy.lvl3:15", - "hierarchy.lvl4:15", - "hierarchy.lvl5:15", - "hierarchy.lvl6:15", - "content:50" - ], + // attributesToSnippet: [ + // "hierarchy.lvl1:15", + // "hierarchy.lvl2:15", + // "hierarchy.lvl3:15", + // "hierarchy.lvl4:15", + // "hierarchy.lvl5:15", + // "hierarchy.lvl6:15", + // "content:50" + // ], }, locales: { root: { @@ -123,11 +115,6 @@ export default defineConfig({ searchInputLabel: '搜索内容', backToKeywordSearchButtonText: '返回关键词搜索', backToKeywordSearchButtonAriaLabel: '返回关键词搜索', - newConversationPlaceholder: '提问', - conversationHistoryTitle: '我的对话历史', - startNewConversationText: '开始新的对话', - viewConversationHistoryText: '对话历史', - threadDepthErrorPlaceholder: '对话已达上限' }, startScreen: { recentSearchesTitle: '搜索历史', @@ -139,11 +126,6 @@ export default defineConfig({ recentConversationsTitle: '最近的对话', removeRecentConversationButtonTitle: '从历史记录中删除对话', }, - newConversation: { - newConversationTitle: '有什么想问的吗?', - newConversationDescription: - '我会帮助您搜索文档,帮您快速了解网站内容。' - }, errorScreen: { titleText: '无法获取结果', helpText: '请检查网络连接', @@ -162,19 +144,15 @@ export default defineConfig({ disclaimerText: '结果由 AI 生成,请注意核查。', relatedSourcesText: '相关来源', thinkingText: '思考中...', - copyButtonText: '复制', - copyButtonCopiedText: '已复制!', - copyButtonTitle: '复制', - likeButtonTitle: '喜欢', - dislikeButtonTitle: '不喜欢', - thanksForFeedbackText: '感谢你的反馈!', preToolCallText: '搜索中...', duringToolCallText: '搜索 ', afterToolCallText: '已搜索', stoppedStreamingText: '你已停止此回复', errorTitleText: '聊天错误', threadDepthExceededMessage: '由于对话过长,为保持回答准确,此对话已关闭。', - startNewConversationButtonText: '开始新的对话' + }, + newConversation: { + newConversationTitle: '有什么想问的吗?', }, footer: { selectText: '选择', @@ -191,52 +169,31 @@ export default defineConfig({ } }, askAi: { - sidePanel: { - button: { - translations: { - buttonText: '询问 AI', - buttonAriaLabel: '询问 AI' - } - }, panel: { translations: { - header: { - title: '询问 AI', - conversationHistoryTitle: '我的对话历史', - newConversationText: '开始新的对话', - viewConversationHistoryText: '对话历史' - }, promptForm: { - promptPlaceholderText: '在此处输入问题', + promptPlaceholderText: '在这里输入问题', promptAnsweringText: '正在回答...', - promptAskAnotherQuestionText: '再问一个问题', - promptDisclaimerText: '回答由 AI 生成,可能会出错。', - promptLabelText: '按回车发送,Shift+回车换行。', + promptAskAnotherQuestionText: '继续向 AI 提问', + promptDisclaimerText: '结果由 AI 生成,请注意核查。', + promptLabelText: '按回车发送,Shift + 回车换行。', promptAriaLabelText: '问题输入框' }, conversationScreen: { preToolCallText: '搜索中...', searchingText: '搜索中...', toolCallResultText: '已搜索', - conversationDisclaimer: '回答由 AI 生成,可能会出错。请核实。', + conversationDisclaimer: '结果由 AI 生成,请注意核查。', reasoningText: '推理中...', thinkingText: '思考中...', relatedSourcesText: '相关来源', stoppedStreamingText: '你已停止此回复', - copyButtonText: '复制', - copyButtonCopiedText: '已复制!', - likeButtonTitle: '喜欢', - dislikeButtonTitle: '不喜欢', - thanksForFeedbackText: '感谢你的反馈!', errorTitleText: '聊天错误' }, newConversationScreen: { titleText: '有什么想问的吗?', - introductionText: - '我可以搜索文档,帮您快速了解网站内容。' - }, logo: { - poweredByText: '由…提供支持' + poweredByText: '搜索提供' } } } @@ -261,4 +218,4 @@ export default defineConfig({ next: '下一页', }, }, -}) \ No newline at end of file +}) From e723b2dd46c1fe37f2362a5dd2e164246a76fe0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=9D=82=E7=A5=9E=E5=A5=88=E5=AD=90?= Date: Tue, 24 Feb 2026 01:38:33 +0800 Subject: [PATCH 4/6] Refactor CSS for DocSearch and layout adjustments --- docs/.vitepress/theme/style.css | 99 ++++++++++++++++++--------------- 1 file changed, 54 insertions(+), 45 deletions(-) diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 676d5af..4239419 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -10,18 +10,30 @@ --vp-button-brand-active-bg: var(--vp-c-brand-2); } -.VPContent > .VPDoc { - padding-top: 48px !important; -} - -.VPHomeHero .image-src { - height: unset !important; +.DocSearch-Button-Keys, +.DocSearch-Help, +.DocSearch-NoResults-Prefill-List-Items p, +.DocSearch-AskAiScreen-RelatedSources, +.DocSearch-AskAiScreen-Answer-Footer, +.DocSearch-StreamingIndicator, +.DocSearch-Menu-trigger.DocSearch-Action, +.DocSearch-Action.DocSearch-StopStreaming, +.DocSearch-Divider, +.DocSearch-AskAiScreen-MessageContent-Tool.Tool--Result, +.DocSearch-Action[title="Conversation history"], +.DocSearch-Action[title="Start a new conversation"], +.vp-doc .header-anchor:before, +.DocSearch-Sidepanel-Screen--introduction { + display: none !important; } -@media (max-width: 768px) { - header > div > div.wrapper > div > div.content { - overflow: hidden !important; - } +.DocSearch-Action.DocSearch-Sidepanel-Action-expand, +.DocSearch-Action.DocSearch-Sidepanel-Action-close, +.DocSearch-Action.DocSearch-Close, +.DocSearch-Action.DocSearch-AskAi-Return, +.DocSearch-Sidepanel-Prompt--submit, +.VPNavBarAskAiButton { + background-color: transparent !important; } .VPFeature, @@ -36,30 +48,6 @@ border-color: var(--vp-c-divider) !important; } -/* .VPDocFooter a.pager-link, -.VPLocalNavOutlineDropdown > div.items, -.custom-block { - border-radius: 12px; -} */ - -.dark .VPHome .VPFeature { - background-color: rgba(37, 37, 41, 0.5); -} - -.DocSearch-Button-Keys, -.DocSearch-Help, -.DocSearch-NoResults-Prefill-List-Items p, -.DocSearch-AskAiScreen-RelatedSources, -.DocSearch-AskAiScreen-Answer-Footer, -.DocSearch-StreamingIndicator, -.DocSearch-Menu-trigger.DocSearch-Action, -.DocSearch-Action.DocSearch-StopStreaming, -.DocSearch-Divider, -.DocSearch-AskAiScreen-MessageContent-Tool.Tool--Result, -.vp-doc .header-anchor:before { - display: none !important; -} - .DocSearch-Input, .DocSearch-Clear, .DocSearch-AskAiScreen-Disclaimer, @@ -72,6 +60,11 @@ font-weight: 500 !important; } +.footnotes, +.DocSearch-AskAiScreen-Disclaimer { + font-size: 14px !important; +} + .DocSearch-AskAiScreen-Query { line-height: 28px !important; } @@ -80,15 +73,14 @@ margin: -5px 0 0 5px !important; } -.footnotes, -.DocSearch-AskAiScreen-Disclaimer { - font-size: 14px !important; -} - .DocSearch-Input { padding-block-start: unset !important; } +.DocSearch-Sidepanel-Prompt--submit:not([aria-disabled="true"]):hover { + color: #e5006a !important; +} + .DocSearch-Search-Icon { --icon: url(data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke%2Dlinecap%3D%27round%27%20stroke%2Dlinejoin%3D%27round%27%20stroke%2Dwidth%3D%272%27%3E%3Cpath%20d%3D%27m21%2021l%2D4%2E34%2D4%2E34%27%2F%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%278%27%20stroke%2Dwidth%3D%272%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E) !important; } @@ -98,11 +90,28 @@ stroke-width: 2 !important; } -.DocSearch-Action.DocSearch-Close, -.DocSearch-Action.DocSearch-AskAi-Return { - background-color: transparent !important; +.VPContent > .VPDoc { + padding-top: 48px !important; } -.VPNavBarSearchButton { - display: none !important; -} \ No newline at end of file +.VPHomeHero .image-src { + height: unset !important; +} + +.dark .VPHome .VPFeature, +.dark .DocSearch-Sidepanel-Content, +.dark .profile { + background-color: rgba(37, 37, 41, 0.5) !important; +} + +/* .VPDocFooter a.pager-link, +.VPLocalNavOutlineDropdown > div.items, +.custom-block { + border-radius: 12px; +} */ + +@media (max-width: 768px) { + header > div > div.wrapper > div > div.content { + overflow: hidden !important; + } +} From 70d8bca14099d48b5516baae6bdd69c38144dcbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=9D=82=E7=A5=9E=E5=A5=88=E5=AD=90?= Date: Tue, 24 Feb 2026 01:40:48 +0800 Subject: [PATCH 5/6] Update config.mts --- docs/.vitepress/config.mts | 164 ++++++++++++++++++------------------- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index d6d9246..c9cfbcc 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -35,23 +35,6 @@ export default defineConfig({ }, themeConfig: { logo: '/favicon.svg', - sidebarMenuLabel: '目录', - darkModeSwitchLabel: '外观', - lightModeSwitchTitle: '切换到浅色模式', - darkModeSwitchTitle: '切换到深色模式', - skipToContentLabel: '跳转到内容', - outlineTitle: '当前页面内容', - returnToTopLabel: '回到顶部', - lastUpdated: { - text: '当前页面最后更新于', - formatOptions: { - dateStyle: 'short', - } - }, - editLink: { - pattern: 'https://github.com/AB-aboutTrans/aboutTrans/edit/main/docs/:path', - text: '对当前页面提出修改建议', - }, nav: [ { text: '主页', link: 'index' }, { text: '关于我们', link: 'about' }, @@ -83,22 +66,22 @@ export default defineConfig({ }, searchParameters: { facetFilters: [], - // attributesToSnippet: [ - // "hierarchy.lvl1:15", - // "hierarchy.lvl2:15", - // "hierarchy.lvl3:15", - // "hierarchy.lvl4:15", - // "hierarchy.lvl5:15", - // "hierarchy.lvl6:15", - // "content:50" - // ], + // attributesToSnippet: [ + // "hierarchy.lvl1:15", + // "hierarchy.lvl2:15", + // "hierarchy.lvl3:15", + // "hierarchy.lvl4:15", + // "hierarchy.lvl5:15", + // "hierarchy.lvl6:15", + // "content:50" + // ], }, locales: { root: { placeholder: '搜索内容或向 AI 提问', translations: { - button: { - buttonText: '搜索内容', + button: { + buttonText: '搜索内容', buttonAriaLabel: '搜索内容', }, modal: { @@ -126,17 +109,10 @@ export default defineConfig({ recentConversationsTitle: '最近的对话', removeRecentConversationButtonTitle: '从历史记录中删除对话', }, - errorScreen: { - titleText: '无法获取结果', - helpText: '请检查网络连接', - }, - noResultsScreen: { - noResultsText: '没有找到相关结果', - suggestedQueryText: '你可以尝试查询', - reportMissingResultsText: '你认为该查询应该有结果?', - reportMissingResultsLinkText: '点击反馈', + newConversation: { + newConversationTitle: '有什么想问的吗?', }, - resultsScreen: { + resultsScreen: { askAiPlaceholder: '向 AI 提问', noResultsAskAiPlaceholder: '没有在文档中找到?试试向 AI 提问吧!', }, @@ -151,8 +127,15 @@ export default defineConfig({ errorTitleText: '聊天错误', threadDepthExceededMessage: '由于对话过长,为保持回答准确,此对话已关闭。', }, - newConversation: { - newConversationTitle: '有什么想问的吗?', + errorScreen: { + titleText: '无法获取结果', + helpText: '请检查网络连接', + }, + noResultsScreen: { + noResultsText: '没有找到相关结果', + suggestedQueryText: '你可以尝试查询', + reportMissingResultsText: '你认为该查询应该有结果?', + reportMissingResultsLinkText: '点击反馈', }, footer: { selectText: '选择', @@ -166,56 +149,73 @@ export default defineConfig({ closeKeyAriaLabel: 'Esc 键', poweredByText: '搜索提供', }, - } + }, }, - askAi: { - panel: { - translations: { - promptForm: { - promptPlaceholderText: '在这里输入问题', - promptAnsweringText: '正在回答...', - promptAskAnotherQuestionText: '继续向 AI 提问', - promptDisclaimerText: '结果由 AI 生成,请注意核查。', - promptLabelText: '按回车发送,Shift + 回车换行。', - promptAriaLabelText: '问题输入框' - }, - conversationScreen: { - preToolCallText: '搜索中...', - searchingText: '搜索中...', - toolCallResultText: '已搜索', - conversationDisclaimer: '结果由 AI 生成,请注意核查。', - reasoningText: '推理中...', - thinkingText: '思考中...', - relatedSourcesText: '相关来源', - stoppedStreamingText: '你已停止此回复', - errorTitleText: '聊天错误' - }, - newConversationScreen: { - titleText: '有什么想问的吗?', - logo: { - poweredByText: '搜索提供' - } - } - } - } + askAi: { + panel: { + translations: { + promptForm: { + promptPlaceholderText: '在这里输入问题', + promptAnsweringText: '正在回答...', + promptAskAnotherQuestionText: '继续向 AI 提问', + promptDisclaimerText: '结果由 AI 生成,请注意核查。', + promptLabelText: '按回车发送,Shift + 回车换行。', + promptAriaLabelText: '问题输入框', + }, + newConversationScreen: { + titleText: '有什么想问的吗?', + }, + conversationScreen: { + preToolCallText: '搜索中...', + searchingText: '搜索中...', + toolCallResultText: '已搜索', + conversationDisclaimer: '结果由 AI 生成,请注意核查。', + reasoningText: '推理中...', + thinkingText: '思考中...', + relatedSourcesText: '相关来源', + stoppedStreamingText: '你已停止此回复', + errorTitleText: '聊天错误', + }, + logo: { + poweredByText: '搜索提供', + }, + }, }, - } - } - } + }, + }, + }, + }, }, - notFound: { - title: '页面未找到', - quote: '但如果你不改变方向,并且继续寻找,你可能最终会到达你所前往的地方。', - linkLabel: '返回首页', - linkText: '返回首页', + editLink: { + pattern: 'https://github.com/AB-aboutTrans/aboutTrans/edit/main/docs/:path', + text: '对当前页面提出修改建议', }, - footer: { - message: '本站内容基于 CC BY 4.0 许可发布', - copyright: `版权所有 © 2023-${new Date().getFullYear()} AB aboutTrans`, + lastUpdated: { + text: '当前页面最后更新于', + formatOptions: { + dateStyle: 'short', + }, }, docFooter: { prev: '上一页', next: '下一页', }, + footer: { + message: '本站内容基于 CC BY 4.0 许可发布', + copyright: `版权所有 © 2023-${new Date().getFullYear()} AB aboutTrans`, + }, + notFound: { + title: '页面未找到', + quote: '但如果你不改变方向,并且继续寻找,你可能最终会到达你所前往的地方。', + linkLabel: '返回首页', + linkText: '返回首页', + }, + sidebarMenuLabel: '目录', + outlineTitle: '当前页面内容', + darkModeSwitchLabel: '外观', + lightModeSwitchTitle: '切换到浅色模式', + darkModeSwitchTitle: '切换到深色模式', + skipToContentLabel: '跳转到内容', + returnToTopLabel: '回到顶部', }, }) From 203e8d8d3a16a61633d24df144bcc4f7fe872bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=9D=82=E7=A5=9E=E5=A5=88=E5=AD=90?= Date: Tue, 24 Feb 2026 01:43:54 +0800 Subject: [PATCH 6/6] Update style.css --- docs/.vitepress/theme/style.css | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 4239419..d819677 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -10,36 +10,36 @@ --vp-button-brand-active-bg: var(--vp-c-brand-2); } +.DocSearch-Action[title="Conversation history"], +.DocSearch-Action[title="Start a new conversation"], +.DocSearch-Action.DocSearch-StopStreaming, +.DocSearch-AskAiScreen-Answer-Footer, +.DocSearch-AskAiScreen-MessageContent-Tool.Tool--Result, +.DocSearch-AskAiScreen-RelatedSources, .DocSearch-Button-Keys, +.DocSearch-Divider, .DocSearch-Help, +.DocSearch-Menu-trigger.DocSearch-Action, .DocSearch-NoResults-Prefill-List-Items p, -.DocSearch-AskAiScreen-RelatedSources, -.DocSearch-AskAiScreen-Answer-Footer, +.DocSearch-Sidepanel-Screen--introduction, .DocSearch-StreamingIndicator, -.DocSearch-Menu-trigger.DocSearch-Action, -.DocSearch-Action.DocSearch-StopStreaming, -.DocSearch-Divider, -.DocSearch-AskAiScreen-MessageContent-Tool.Tool--Result, -.DocSearch-Action[title="Conversation history"], -.DocSearch-Action[title="Start a new conversation"], -.vp-doc .header-anchor:before, -.DocSearch-Sidepanel-Screen--introduction { +.vp-doc .header-anchor:before { display: none !important; } -.DocSearch-Action.DocSearch-Sidepanel-Action-expand, -.DocSearch-Action.DocSearch-Sidepanel-Action-close, -.DocSearch-Action.DocSearch-Close, .DocSearch-Action.DocSearch-AskAi-Return, +.DocSearch-Action.DocSearch-Close, +.DocSearch-Action.DocSearch-Sidepanel-Action-close, +.DocSearch-Action.DocSearch-Sidepanel-Action-expand, .DocSearch-Sidepanel-Prompt--submit, .VPNavBarAskAiButton { background-color: transparent !important; } -.VPFeature, -.VPSwitch, .DocSearch-Button, -.link { +.link, +.VPFeature, +.VPSwitch { border-color: transparent !important; } @@ -48,11 +48,11 @@ border-color: var(--vp-c-divider) !important; } -.DocSearch-Input, -.DocSearch-Clear, .DocSearch-AskAiScreen-Disclaimer, -.DocSearch-Title, -.DocSearch-Modal-heading.shimmer { +.DocSearch-Clear, +.DocSearch-Input, +.DocSearch-Modal-heading.shimmer, +.DocSearch-Title { font-weight: 400 !important; } @@ -60,8 +60,8 @@ font-weight: 500 !important; } -.footnotes, -.DocSearch-AskAiScreen-Disclaimer { +.DocSearch-AskAiScreen-Disclaimer, +.footnotes { font-size: 14px !important; } @@ -98,9 +98,9 @@ height: unset !important; } -.dark .VPHome .VPFeature, .dark .DocSearch-Sidepanel-Content, -.dark .profile { +.dark .profile, +.dark .VPHome .VPFeature { background-color: rgba(37, 37, 41, 0.5) !important; }