From 7c980469ac4f5c0dd5d1fac156cce3a0dab7c333 Mon Sep 17 00:00:00 2001 From: Suzukaze <1027743497@qq.com> Date: Tue, 2 Apr 2024 13:13:47 +0800 Subject: [PATCH 1/2] add search feature --- .vitepress/config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/.vitepress/config.mjs b/.vitepress/config.mjs index 97b3786..ba2f874 100644 --- a/.vitepress/config.mjs +++ b/.vitepress/config.mjs @@ -51,6 +51,7 @@ export default defineConfig({ }, socialLinks: [{ icon: 'github', link: repo_url }], + search: { provider: 'local' }, outline: { label: '页面导航' }, returnToTopLabel: '回到顶端', }, From 49ab2766847a17ff5d7874bc1d83fb5dcb9ff8f3 Mon Sep 17 00:00:00 2001 From: Suzukaze <1027743497@qq.com> Date: Tue, 2 Apr 2024 14:16:31 +0800 Subject: [PATCH 2/2] modify detail view and doc footer --- .vitepress/config.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vitepress/config.mjs b/.vitepress/config.mjs index ba2f874..31aa9a7 100644 --- a/.vitepress/config.mjs +++ b/.vitepress/config.mjs @@ -51,8 +51,17 @@ export default defineConfig({ }, socialLinks: [{ icon: 'github', link: repo_url }], - search: { provider: 'local' }, + search: { + provider: 'local', + options: { + detailedView: true, + } + }, outline: { label: '页面导航' }, + docFooter: { + prev: '上一页', + next: '下一页' + }, returnToTopLabel: '回到顶端', }, markdown: {