add search
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-09-17 17:47:50 +08:00
parent e312fdb8bc
commit ea4c0a897d
4 changed files with 21 additions and 4 deletions

View File

@@ -22,6 +22,26 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
externalLinkIcon: true,
logo: "/noto--bookmark-tabs.svg",
search: {
provider: "local",
options: {
translations: {
button: { buttonText: "搜索文档", buttonAriaLabel: "搜索文档" },
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
displayDetails: "显示更多结果",
backButtonTitle: "返回",
footer: {
selectText: "选择",
navigateText: "切换",
closeText: "关闭",
},
},
},
},
},
nav: [
{ text: "首页", link: "/" },
{ text: "编程基础", link: "/basic/manual/book/index.md" },

View File

@@ -1,3 +0,0 @@
:lang(zh) {
--vp-code-copy-copied-text-content: '已复制'
}

View File

@@ -3,7 +3,6 @@ import DefaultTheme from "vitepress/theme"
import BVideo from "./components/BVideo.vue"
import Author from "./components/Author.vue"
import CodeEditor from "./components/CodeEditor.vue"
import './custom.css'
export default {
extends: DefaultTheme,