fix: 更换全文搜索插件
This commit is contained in:
parent
aad31fb284
commit
5e466ea5e6
|
|
@ -236,32 +236,35 @@ export default defineConfig4CustomTheme<VdoingThemeConfig>({
|
|||
hm: baiduCode,
|
||||
},
|
||||
|
||||
// 全文搜索
|
||||
'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',
|
||||
},
|
||||
],
|
||||
},
|
||||
// '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': {
|
||||
|
|
|
|||
|
|
@ -57,3 +57,11 @@ body .vuepress-plugin-demo-block__wrapper
|
|||
border-bottom-color: $accentColor !important;
|
||||
svg
|
||||
fill: $accentColor !important;
|
||||
|
||||
// 全文搜索框
|
||||
.suggestions
|
||||
overflow: auto
|
||||
max-height: calc(100vh - 6rem)
|
||||
.highlight
|
||||
color: $accentColor
|
||||
font-weight: bold
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
"dayjs": "^1.9.7",
|
||||
"inquirer": "^7.1.0",
|
||||
"json2yaml": "^1.1.0",
|
||||
"vuepress": "1.9.2",
|
||||
"vuepress": "1.9.5",
|
||||
"vuepress-plugin-baidu-autopush": "^1.0.1",
|
||||
"vuepress-plugin-baidu-tongji": "^1.0.1",
|
||||
"vuepress-plugin-demo-block": "^0.7.2",
|
||||
"vuepress-plugin-fulltext-search": "^2.2.1",
|
||||
"vuepress-plugin-one-click-copy": "^1.0.2",
|
||||
"vuepress-plugin-thirdparty-search": "^1.0.2",
|
||||
"vuepress-plugin-zooming": "^1.1.7",
|
||||
|
|
|
|||
Loading…
Reference in New Issue