1
- import { defineConfig } from 'vitepress'
1
+ import { defineConfig } from 'vitepress' ;
2
2
3
3
// https://vitepress.dev/reference/site-config
4
4
export default defineConfig ( {
5
- title : " RustFS" ,
6
- description : " RustFS is a high-performance distributed object storage software built using Rust" ,
5
+ title : ' RustFS' ,
6
+ description : ' RustFS is a high-performance distributed object storage software built using Rust' ,
7
7
themeConfig : {
8
8
siteTitle : false ,
9
9
logo : { src : '/images/logo.svg' , height : 24 } ,
10
+ logoLink : { link : 'https://rustfs.com' , target : '_blank' } ,
10
11
socialLinks : [
11
12
{ icon : 'github' , link : 'https://github.com/rustfs/rustfs' } ,
12
13
{ icon : 'twitter' , link : 'https://twitter.com/rustfsofficial' } ,
@@ -20,28 +21,54 @@ export default defineConfig({
20
21
translations : {
21
22
button : {
22
23
buttonText : '搜索文档' ,
23
- buttonAriaLabel : '搜索文档'
24
+ buttonAriaLabel : '搜索文档' ,
24
25
} ,
25
26
modal : {
26
27
noResultsText : '无法找到相关结果' ,
27
28
resetButtonTitle : '清除查询条件' ,
28
29
footer : {
29
30
selectText : '选择' ,
30
- navigateText : '切换'
31
- }
32
- }
33
- }
34
- }
35
- }
36
- }
37
- }
31
+ navigateText : '切换' ,
32
+ } ,
33
+ } ,
34
+ } ,
35
+ } ,
36
+ } ,
37
+ } ,
38
+ } ,
38
39
} ,
40
+ head : [
41
+ [ 'script' , { async : '' , src : 'https://www.googletagmanager.com/gtag/js?id=G-TWW7WMTWL9' } ] ,
42
+
43
+ [
44
+ 'script' ,
45
+ { } ,
46
+ `window.dataLayer = window.dataLayer || [];
47
+ function gtag(){dataLayer.push(arguments);}
48
+ gtag('js', new Date());
49
+ gtag('config', 'G-TWW7WMTWL9');` ,
50
+ ] ,
51
+
52
+ [
53
+ 'script' ,
54
+ { } ,
55
+ `
56
+ var _hmt = _hmt || [];
57
+ (function() {
58
+ var hm = document.createElement("script");
59
+ hm.src = "https://hm.baidu.com/hm.js?968e7103a8e28fb30f7d69e42b7c82bc";
60
+ var s = document.getElementsByTagName("script")[0];
61
+ s.parentNode.insertBefore(hm, s);
62
+ })();
63
+ ` ,
64
+ ] ,
65
+ ] ,
39
66
srcDir : 'docs' ,
40
67
locales : {
41
68
root : { label : 'English' , link : '/en/' , lang : 'en' , dir : 'en' } ,
42
69
zh : { label : '简体中文' , link : '/zh/' , lang : 'zh' , dir : 'zh' } ,
43
70
} ,
44
71
sitemap : {
45
- hostname : 'https://docs.rustfs.com'
46
- }
47
- } )
72
+ hostname : 'https://docs.rustfs.com' ,
73
+ } ,
74
+ } ) ;
0 commit comments