@@ -15,15 +15,31 @@ export default (defineConfig({
15
15
// #region fav
16
16
head : [
17
17
[ 'link' , { rel : 'icon' , href : '/logo.png' } ] ,
18
+ [ 'script' , { } ,
19
+ `
20
+ var _hmt = _hmt || [];
21
+ (function() {
22
+ var hm = document.createElement("script");
23
+ hm.src = "https://hm.baidu.com/hm.js?457b1f311c48412b87b946117f8314fc";
24
+ var s = document.getElementsByTagName("script")[0];
25
+ s.parentNode.insertBefore(hm, s);
26
+ })();
27
+ `
28
+ ]
18
29
] ,
19
30
// #endregion fav
20
31
21
32
base : '/' , //网站部署到github的vitepress这个仓库里
22
33
23
34
cleanUrls :true , //开启纯净链接无html
24
35
36
+ // 站点地图
37
+ sitemap : {
38
+ hostname : 'https://jenkinsguide.opsre.top' ,
39
+ } ,
40
+
25
41
//启用深色模式
26
- appearance : 'dark ' ,
42
+ appearance : 'force-auto ' ,
27
43
28
44
//多语言
29
45
locales : {
@@ -205,54 +221,54 @@ export default (defineConfig({
205
221
//Algolia搜索
206
222
search : {
207
223
provider : 'local' ,
208
- options : {
209
- appId : 'QVKQI62L15' ,
210
- apiKey : 'bef8783dde57293ce082c531aa7c7e0c' ,
211
- indexName : 'doc' ,
212
- locales : {
213
- root : {
214
- placeholder : '搜索文档' ,
215
- translations : {
216
- button : {
217
- buttonText : '搜索文档' ,
218
- buttonAriaLabel : '搜索文档'
219
- } ,
220
- modal : {
221
- searchBox : {
222
- resetButtonTitle : '清除查询条件' ,
223
- resetButtonAriaLabel : '清除查询条件' ,
224
- cancelButtonText : '取消' ,
225
- cancelButtonAriaLabel : '取消'
226
- } ,
227
- startScreen : {
228
- recentSearchesTitle : '搜索历史' ,
229
- noRecentSearchesText : '没有搜索历史' ,
230
- saveRecentSearchButtonTitle : '保存至搜索历史' ,
231
- removeRecentSearchButtonTitle : '从搜索历史中移除' ,
232
- favoriteSearchesTitle : '收藏' ,
233
- removeFavoriteSearchButtonTitle : '从收藏中移除'
234
- } ,
235
- errorScreen : {
236
- titleText : '无法获取结果' ,
237
- helpText : '你可能需要检查你的网络连接'
238
- } ,
239
- footer : {
240
- selectText : '选择' ,
241
- navigateText : '切换' ,
242
- closeText : '关闭' ,
243
- searchByText : '搜索提供者'
244
- } ,
245
- noResultsScreen : {
246
- noResultsText : '无法找到相关结果' ,
247
- suggestedQueryText : '你可以尝试查询' ,
248
- reportMissingResultsText : '你认为该查询应该有结果?' ,
249
- reportMissingResultsLinkText : '点击反馈'
250
- } ,
251
- } ,
252
- } ,
253
- } ,
254
- } ,
255
- } ,
224
+ // options: {
225
+ // appId: 'QVKQI62L15',
226
+ // apiKey: 'bef8783dde57293ce082c531aa7c7e0c',
227
+ // indexName: 'doc',
228
+ // locales: {
229
+ // root: {
230
+ // placeholder: '搜索文档',
231
+ // translations: {
232
+ // button: {
233
+ // buttonText: '搜索文档',
234
+ // buttonAriaLabel: '搜索文档'
235
+ // },
236
+ // modal: {
237
+ // searchBox: {
238
+ // resetButtonTitle: '清除查询条件',
239
+ // resetButtonAriaLabel: '清除查询条件',
240
+ // cancelButtonText: '取消',
241
+ // cancelButtonAriaLabel: '取消'
242
+ // },
243
+ // startScreen: {
244
+ // recentSearchesTitle: '搜索历史',
245
+ // noRecentSearchesText: '没有搜索历史',
246
+ // saveRecentSearchButtonTitle: '保存至搜索历史',
247
+ // removeRecentSearchButtonTitle: '从搜索历史中移除',
248
+ // favoriteSearchesTitle: '收藏',
249
+ // removeFavoriteSearchButtonTitle: '从收藏中移除'
250
+ // },
251
+ // errorScreen: {
252
+ // titleText: '无法获取结果',
253
+ // helpText: '你可能需要检查你的网络连接'
254
+ // },
255
+ // footer: {
256
+ // selectText: '选择',
257
+ // navigateText: '切换',
258
+ // closeText: '关闭',
259
+ // searchByText: '搜索提供者'
260
+ // },
261
+ // noResultsScreen: {
262
+ // noResultsText: '无法找到相关结果',
263
+ // suggestedQueryText: '你可以尝试查询',
264
+ // reportMissingResultsText: '你认为该查询应该有结果?',
265
+ // reportMissingResultsLinkText: '点击反馈'
266
+ // },
267
+ // },
268
+ // },
269
+ // },
270
+ // },
271
+ // },
256
272
} ,
257
273
258
274
0 commit comments