Skip to content

Commit 35fc1ed

Browse files
author
JavasHub
committed
config search
1 parent e597893 commit 35fc1ed

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/.vuepress/theme.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -140,33 +140,33 @@ export default hopeTheme({
140140
// },
141141

142142
// docsearch 搜索插件选项
143-
// docsearch: {
144-
// // 必填
145-
// apiKey: '',
146-
// indexName: '',
147-
// appId: '',
148-
//
149-
// // 可选
150-
// placeholder: '搜索文档',
151-
// },
143+
docsearch: {
144+
// 必填
145+
apiKey: 'b2a3b223caeed0e8976dcb3f313c5026',
146+
indexName: 'imlyk',
147+
appId: 'KH7SY7AEUO',
148+
149+
// 可选
150+
placeholder: '搜索文档',
151+
},
152152

153153
// 简单一点的搜索
154-
slimsearch: { // SlimSearchPluginOptions 对象
155-
// 是否索引正文,默认false
156-
indexContent: true,
157-
// 是否在输入时提供自动建议
158-
suggestion: true,
159-
// 存储查询历史的最大数量,设置 0 时禁用
160-
queryHistoryCount: 5,
161-
// 存储结果历史的最大数量 0 禁用
162-
resultHistoryCount: 5,
163-
// 弹出热键
164-
// hotKeys:
165-
// 自定义 CustomFieldOptions 对象数组
166-
customFields: [
167-
168-
]
169-
},
154+
// slimsearch: { // SlimSearchPluginOptions 对象
155+
// // 是否索引正文,默认false
156+
// indexContent: true,
157+
// // 是否在输入时提供自动建议
158+
// suggestion: true,
159+
// // 存储查询历史的最大数量,设置 0 时禁用
160+
// queryHistoryCount: 5,
161+
// // 存储结果历史的最大数量 0 禁用
162+
// resultHistoryCount: 5,
163+
// // 弹出热键
164+
// // hotKeys:
165+
// // 自定义 CustomFieldOptions 对象数组
166+
// customFields: [
167+
//
168+
// ]
169+
// },
170170

171171
// 开启复制自动附加版权
172172
copyright: {

0 commit comments

Comments
 (0)