From 7a04841d41b5bb50e6a55c200328aeeda9804489 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Thu, 17 Mar 2022 22:30:37 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B5=8B=E8=AF=95=E4=B8=8D=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=85=A8=E6=96=87=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 613fadc..f683a04 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -9,8 +9,8 @@ import baiduCode from './config/baiduCode' // 百度统计hm码 import htmlModules from './config/htmlModules' // 自定义插入的html块 export default defineConfig4CustomTheme({ - // theme: 'vdoing', // 使用npm包主题 - theme: resolve(__dirname, '../../vdoing'), // 使用本地主题 + theme: 'vdoing', // 使用npm包主题 + // theme: resolve(__dirname, '../../vdoing'), // 使用本地主题 locales: { '/': { @@ -235,8 +235,35 @@ export default defineConfig4CustomTheme({ }, ], - // 全文搜索 - 'fulltext-search', + // 全文搜索。 ⚠️注意:此插件会在打开网站时一次性加载所有页面相应的js文件用于搜索,导致初次访问网站加载变慢。如在意初次访问速度的话可以不使用此插件!(推荐:vuepress-plugin-thirdparty-search) + // 'fulltext-search', + + // 可以添加第三方搜索链接的搜索框(继承原官方搜索框的配置参数) + // 'thirdparty-search': { + // thirdparty: [ + // { + // title: '在MDN中搜索', + // frontUrl: 'https://developer.mozilla.org/zh-CN/search?q=', // 搜索链接的前面部分 + // behindUrl: '', // 搜索链接的后面部分,可选,默认 '' + // }, + // { + // title: '在Runoob中搜索', + // frontUrl: 'https://www.runoob.com/?s=', + // }, + // { + // title: '在Vue API中搜索', + // frontUrl: 'https://cn.vuejs.org/v2/api/#', + // }, + // { + // title: '在Bing中搜索', + // frontUrl: 'https://cn.bing.com/search?q=', + // }, + // { + // title: '通过百度搜索本站的', + // frontUrl: 'https://www.baidu.com/s?wd=site%3Axugaoyi.com%20', + // }, + // ], + // }, [ 'one-click-copy', // 代码块复制按钮