1- import { defineConfig } from 'vitepress'
1+ import { defineConfig } from 'vitepress' ;
22
33// https://vitepress.dev/reference/site-config
44export 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' ,
77 themeConfig : {
88 siteTitle : false ,
99 logo : { src : '/images/logo.svg' , height : 24 } ,
10+ logoLink : { link : 'https://rustfs.com' , target : '_blank' } ,
1011 socialLinks : [
1112 { icon : 'github' , link : 'https://github.com/rustfs/rustfs' } ,
1213 { icon : 'twitter' , link : 'https://twitter.com/rustfsofficial' } ,
@@ -20,28 +21,54 @@ export default defineConfig({
2021 translations : {
2122 button : {
2223 buttonText : '搜索文档' ,
23- buttonAriaLabel : '搜索文档'
24+ buttonAriaLabel : '搜索文档' ,
2425 } ,
2526 modal : {
2627 noResultsText : '无法找到相关结果' ,
2728 resetButtonTitle : '清除查询条件' ,
2829 footer : {
2930 selectText : '选择' ,
30- navigateText : '切换'
31- }
32- }
33- }
34- }
35- }
36- }
37- }
31+ navigateText : '切换' ,
32+ } ,
33+ } ,
34+ } ,
35+ } ,
36+ } ,
37+ } ,
38+ } ,
3839 } ,
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+ ] ,
3966 srcDir : 'docs' ,
4067 locales : {
4168 root : { label : 'English' , link : '/en/' , lang : 'en' , dir : 'en' } ,
4269 zh : { label : '简体中文' , link : '/zh/' , lang : 'zh' , dir : 'zh' } ,
4370 } ,
4471 sitemap : {
45- hostname : 'https://docs.rustfs.com'
46- }
47- } )
72+ hostname : 'https://docs.rustfs.com' ,
73+ } ,
74+ } ) ;
0 commit comments