Skip to content

Commit 739055d

Browse files
author
JavasHub
committed
update theme
1 parent 752a55c commit 739055d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/.vuepress/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ export default defineUserConfig({
2424
});
2525
},
2626

27+
// index.html中注入 head
28+
head: [
29+
[
30+
"link",
31+
{ rel: "stylesheet" , href: "https://cdn.jsdelivr.net/npm/@docsearch/css@3"}
32+
],
33+
[
34+
"script",
35+
{ src: "https://cdn.jsdelivr.net/npm/@docsearch/js@3"}
36+
]
37+
]
38+
2739
// 和 PWA 一起启用
2840
// shouldPrefetch: false,
2941
});

src/.vuepress/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export default hopeTheme({
142142

143143
// docsearch 搜索插件选项
144144
docsearch: {
145-
appId: "KH7SY7AEUO",
146-
apiKey: "f3ac81adcd737c02a0602fdf7bf1b217",
145+
appId: "5IEUZKNR4Z", // "KH7SY7AEUO",
146+
apiKey: "a29731e9944983920c342f45a82f80a4", // "f3ac81adcd737c02a0602fdf7bf1b217",
147147
indexName: "imlyk",
148148
locales: {
149149
"/": {

0 commit comments

Comments
 (0)