Skip to content

Commit b68e146

Browse files
author
lipeng hao
committed
feat: add favicon and emoji icons in sidebar
1 parent 637deda commit b68e146

File tree

2 files changed

+40
-12
lines changed

2 files changed

+40
-12
lines changed

docs/.vitepress/config.mts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineConfig({
66
base: '/ebpf-tutorial/',
77

88
head: [
9-
['link', { rel: 'icon', href: '/ebpf-tutorial/favicon.ico' }]
9+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/ebpf-tutorial/favicon.svg' }]
1010
],
1111

1212
// 多语言配置
@@ -22,13 +22,13 @@ export default defineConfig({
2222
sidebar: {
2323
'/guide/': [
2424
{
25-
text: 'Getting Started',
25+
text: '🚀 Getting Started',
2626
items: [
2727
{ text: 'Lesson 1: Hello World', link: '/guide/lesson-1-helloworld' }
2828
]
2929
},
3030
{
31-
text: 'Hook Mechanisms',
31+
text: '🎯 Hook Mechanisms',
3232
items: [
3333
{ text: 'Lesson 2: Kprobe', link: '/guide/lesson-2-kprobe' },
3434
{ text: 'Lesson 3: Uprobe', link: '/guide/lesson-3-uprobe' },
@@ -37,22 +37,22 @@ export default defineConfig({
3737
]
3838
},
3939
{
40-
text: 'Data Structures',
40+
text: '📊 Data Structures',
4141
items: [
4242
{ text: 'Lesson 4: User Map', link: '/guide/lesson-4-user-map' },
4343
{ text: 'Lesson 5: Kernel User Map', link: '/guide/lesson-5-kernel-user-map' },
4444
{ text: 'Lesson 7: Ring/Perf Buffer', link: '/guide/lesson-7-ringbuffer-perfbuffer' }
4545
]
4646
},
4747
{
48-
text: 'Network Programming',
48+
text: '🌐 Network Programming',
4949
items: [
5050
{ text: 'Lesson 11: TC Ingress', link: '/guide/lesson-11-tc-ingress' },
5151
{ text: 'Lesson 12: TC Egress', link: '/guide/lesson-12-tc-egress' }
5252
]
5353
},
5454
{
55-
text: 'Advanced Topics',
55+
text: '🔬 Advanced Topics',
5656
items: [
5757
{ text: 'Lesson 6: Go Development', link: '/guide/lesson-6-golang-develop' },
5858
{ text: 'Lesson 10: BTF', link: '/guide/lesson-10-btf' },
@@ -75,13 +75,13 @@ export default defineConfig({
7575
sidebar: {
7676
'/zh/guide/': [
7777
{
78-
text: '快速开始',
78+
text: '🚀 快速开始',
7979
items: [
8080
{ text: 'Lesson 1: Hello World', link: '/zh/guide/lesson-1-helloworld' }
8181
]
8282
},
8383
{
84-
text: 'Hook 机制',
84+
text: '🎯 Hook 机制',
8585
items: [
8686
{ text: 'Lesson 2: Kprobe', link: '/zh/guide/lesson-2-kprobe' },
8787
{ text: 'Lesson 3: Uprobe', link: '/zh/guide/lesson-3-uprobe' },
@@ -90,31 +90,31 @@ export default defineConfig({
9090
]
9191
},
9292
{
93-
text: '数据结构',
93+
text: '📊 数据结构',
9494
items: [
9595
{ text: 'Lesson 4: 用户态 Map', link: '/zh/guide/lesson-4-user-map' },
9696
{ text: 'Lesson 5: 内核态 Map', link: '/zh/guide/lesson-5-kernel-user-map' },
9797
{ text: 'Lesson 7: Ring/Perf Buffer', link: '/zh/guide/lesson-7-ringbuffer-perfbuffer' }
9898
]
9999
},
100100
{
101-
text: '网络编程',
101+
text: '🌐 网络编程',
102102
items: [
103103
{ text: 'Lesson 11: TC Ingress', link: '/zh/guide/lesson-11-tc-ingress' },
104104
{ text: 'Lesson 12: TC Egress', link: '/zh/guide/lesson-12-tc-egress' },
105105
{ text: 'Lesson 17: XDP 过滤', link: '/zh/guide/lesson-17-xdp-filter' }
106106
]
107107
},
108108
{
109-
text: '高级主题',
109+
text: '🔬 高级主题',
110110
items: [
111111
{ text: 'Lesson 6: Go 语言开发', link: '/zh/guide/lesson-6-golang-develop' },
112112
{ text: 'Lesson 10: BTF', link: '/zh/guide/lesson-10-btf' },
113113
{ text: 'Lesson 13: SSL Sniff', link: '/zh/guide/lesson-13-ssl-sniff' }
114114
]
115115
},
116116
{
117-
text: '实战项目',
117+
text: '🐝 实战项目',
118118
items: [
119119
{ text: 'Lesson 14: HTTPS 流量监控', link: '/zh/guide/lesson-14-ssl-traffic-monitor' },
120120
{ text: 'Lesson 15: 进程命令监控', link: '/zh/guide/lesson-15-exec-command-monitor' },
@@ -134,6 +134,9 @@ export default defineConfig({
134134
},
135135

136136
themeConfig: {
137+
// Logo
138+
logo: '/favicon.svg',
139+
137140
// 搜索
138141
search: {
139142
provider: 'local',

docs/public/favicon.svg

Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)