Commit b32d4a3 1 parent e107e47 commit b32d4a3 Copy full SHA for b32d4a3
File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ interface SidebarItem {
130
130
}
131
131
```
132
132
133
-
134
133
## outlineTitle
135
134
136
135
- Type: ` string `
@@ -148,7 +147,7 @@ export default {
148
147
149
148
## socialLinks
150
149
151
- - Type: ` SocialLink `
150
+ - Type: ` SocialLink[] `
152
151
153
152
You may define this option to show your social account links with icons in nav.
154
153
@@ -158,7 +157,14 @@ export default {
158
157
socialLinks: [
159
158
{ icon: ' github' , link: ' https://github.com/vuejs/vitepress' },
160
159
{ icon: ' twitter' , link: ' ...' },
161
- { icon: ' discord' , link: ' ...' }
160
+ // You can also add custom icons by passing SVG as string:
161
+ {
162
+ icon: {
163
+ // [Pro Tip] You can get this from https://simpleicons.org/ for many popular brands
164
+ svg: ' <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Dribbble</title><path d="M12...6.38z"/></svg>'
165
+ },
166
+ link: ' ...'
167
+ }
162
168
]
163
169
}
164
170
}
@@ -179,6 +185,7 @@ type SocialLinkIcon =
179
185
| ' slack'
180
186
| ' twitter'
181
187
| ' youtube'
188
+ | { svg: string }
182
189
` ` `
183
190
184
191
## footer
You can’t perform that action at this time.
0 commit comments