1
- import { defineConfig } from 'vitepress'
1
+ import { type DefaultTheme , defineConfig } from 'vitepress'
2
2
import { applyPlugins } from '@ruabick/md-demo-plugins'
3
3
import { genTemp } from '@ruabick/vite-plugin-gen-temp'
4
4
import { sidebar } from './sidebar'
5
5
import { resolve } from 'path'
6
6
import UnoCSS from 'unocss/vite'
7
7
import { copyDocs } from './theme/plugins/copy-docs'
8
8
9
+ const socialLinks : DefaultTheme . SocialLink [ ] = [
10
+ {
11
+ icon : 'github' ,
12
+ link : 'https://github.com/Alfred-Skyblue/vue-draggable-plus'
13
+ }
14
+ ]
15
+
9
16
export default defineConfig ( {
10
17
lang : 'zh-CN' ,
11
18
lastUpdated : true ,
@@ -49,6 +56,21 @@ export default defineConfig({
49
56
{ text : 'API' , link : '/api/' , activeMatch : '^/api/' } ,
50
57
{ text : '常见问题' , link : '/faq/' , activeMatch : '^/faq/' } ,
51
58
{ text : '社区群' , link : '/contact-me/' , activeMatch : '^/contact-me/' }
59
+ ] ,
60
+ socialLinks : [
61
+ {
62
+ icon : {
63
+ svg : '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M937.4 423.9c-84 0-165.7-27.3-232.9-77.8v352.3c0 179.9-138.6 325.6-309.6 325.6S85.3 878.3 85.3 698.4c0-179.9 138.6-325.6 309.6-325.6 17.1 0 33.7 1.5 49.9 4.3v186.6c-15.5-6.1-32-9.2-48.6-9.2-76.3 0-138.2 65-138.2 145.3 0 80.2 61.9 145.3 138.2 145.3 76.2 0 138.1-65.1 138.1-145.3V0H707c0 134.5 103.7 243.5 231.6 243.5v180.3l-1.2 0.1"></path></svg>'
64
+ } ,
65
+ link : 'https://www.douyin.com/user/MS4wLjABAAAAGUvGqSgUb8n2mLUU9SOa5wmdZy-Sj5_FUt-DK5Iu6PpxO1QgrJ1_vXy6ikzz_Q4h'
66
+ } ,
67
+ {
68
+ icon : {
69
+ svg : '<svg viewBox="0 0 1049 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M363.822 162.086l-96.96-93.983S251.714 49.46 277.346 28.36c25.76-20.972 27.056-11.651 35.73-5.826 8.672 5.826 144.21 139.551 144.21 139.551h-93.464z m322.08 3.496l96.962-93.984s15.146-18.641-10.486-39.742c-25.632-20.972-27.056-11.651-35.73-5.826-8.672 5.826-144.211 139.552-144.211 139.552h93.466z" ></path><path d="M1049.798 339.568c-3.495-147.19-131.396-175.152-131.396-175.152s-655.295-5.307-791.998 0C-10.3 202.994 0.186 339.568 0.186 339.568s1.813 292.565-0.13 440.66c14.759 148.096 128.938 171.656 128.938 171.656s45.567 0.906 78.837 0.906c3.495 9.58 6.084 56.054 57.866 56.054 51.652 0 57.866-56.054 57.866-56.054s378.523-1.812 409.98-1.812c1.812 15.793 9.58 58.643 61.36 57.866 51.653-0.906 55.149-61.361 55.149-61.361s17.476-1.813 70.034 0c122.593-22.784 129.713-166.478 129.713-166.478s-1.683-294.248 0-441.437zM944.292 808.06c0 23.172-18.382 42.072-41.037 42.072H157.214c-22.655 0-41.037-18.77-41.037-42.072V313.936c0-23.173 18.382-42.073 41.037-42.073h746.042c22.655 0 41.037 18.771 41.037 42.073V808.06z" ></path><path d="M194.755 453.487l219.037-42.073 16.57 82.333-217.223 42.073z m681.575 0l-219.036-42.073-16.7 82.333 217.353 42.073zM430.36 657.636s48.158 86.734 101.623-28.092c51.652 112.107 108.61 29.774 108.61 29.774l32.365 21.101s-60.455 97.22-140.2 23.69c-67.444 73.53-138.385-23.43-138.385-23.43l35.988-23.043z" ></path></svg>'
70
+ } ,
71
+ link : 'https://space.bilibili.com/423876881'
72
+ } ,
73
+ ...socialLinks
52
74
]
53
75
}
54
76
} ,
@@ -65,7 +87,8 @@ export default defineConfig({
65
87
{ text : 'Demo' , link : '/en/demo/basic/' } ,
66
88
{ text : 'API' , link : '/en/api/' , activeMatch : '^/api/' } ,
67
89
{ text : 'FAQ' , link : '/en/faq/' , activeMatch : '^/faq/' }
68
- ]
90
+ ] ,
91
+ socialLinks
69
92
}
70
93
}
71
94
} ,
@@ -76,16 +99,11 @@ export default defineConfig({
76
99
// }
77
100
// },
78
101
themeConfig : {
102
+ // @ts -ignore
79
103
repo : 'vuejs/vitepress' ,
80
104
editLinks : true ,
81
105
logo : '/logo.svg' ,
82
- sidebar,
83
- socialLinks : [
84
- {
85
- icon : 'github' ,
86
- link : 'https://github.com/Alfred-Skyblue/vue-draggable-plus'
87
- }
88
- ]
106
+ sidebar
89
107
} ,
90
108
ignoreDeadLinks : true ,
91
109
vue : { } ,
0 commit comments