|
| 1 | +import {defineConfig} from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + |
| 6 | + title: "技术笔记", |
| 7 | + description: "Kayn的个人技术笔记", |
| 8 | + lastUpdated: true, |
| 9 | + themeConfig: { |
| 10 | + // https://vitepress.dev/reference/default-theme-config |
| 11 | + // search: { |
| 12 | + // provider: 'local' |
| 13 | + // }, |
| 14 | + nav: [ |
| 15 | + {text: 'Home', link: '/'}, |
| 16 | + {text: 'Examples', link: '/markdown-examples'}, |
| 17 | + {text: 'Skills', link: '/skills'}, |
| 18 | + {text: 'AI', link: '/AI'} |
| 19 | + ], |
| 20 | + search: { |
| 21 | + provider: 'local' |
| 22 | + }, |
| 23 | + outline: { |
| 24 | + level: [1, 2], |
| 25 | + label: "目录", |
| 26 | + |
| 27 | + }, |
| 28 | + docFooter: { |
| 29 | + prev: '上一页', |
| 30 | + next: '下一页', |
| 31 | + }, |
| 32 | + sidebar: [ |
| 33 | + {text: 'Introduction', link: '/README'}, |
| 34 | + {text: 'Home', link: '/'}, |
| 35 | + { |
| 36 | + text: '计算机科学', |
| 37 | + items: [ |
| 38 | + {text: 'Python', link: '/Python程序设计语言'}, |
| 39 | + {text: '工程实践', link: '/工程实践'}, |
| 40 | + {text: '编程技术', link: '/编程技术'}, |
| 41 | + {text: '程序原理', link: '/程序原理'}, |
| 42 | + {text: '系统设计', link: '/系统设计'}, |
| 43 | + ], |
| 44 | + collapsed: false, |
| 45 | + }, |
| 46 | + { |
| 47 | + text: 'Examples', |
| 48 | + items: [ |
| 49 | + {text: 'Markdown Examples', link: '/markdown-examples'}, |
| 50 | + {text: 'Runtime API Examples', link: '/api-examples'} |
| 51 | + ], |
| 52 | + collapsed: true, |
| 53 | + }, |
| 54 | + { |
| 55 | + text: 'AI', |
| 56 | + items: [ |
| 57 | + {text: 'AI', link: '/AI'}, |
| 58 | + {text: 'AI最佳实践', link: '/AI最佳实践'} |
| 59 | + ], |
| 60 | + collapsed: true, |
| 61 | + }, |
| 62 | + { |
| 63 | + text: '系统设计', |
| 64 | + items: [ |
| 65 | + {text: '系统设计', link: '/系统设计'}, |
| 66 | + ], |
| 67 | + collapsed: true, |
| 68 | + }, |
| 69 | + { |
| 70 | + text: 'skills', |
| 71 | + items: [ |
| 72 | + {text: 'uv', link: '/skills/uv'}, |
| 73 | + ], |
| 74 | + collapsed: true, |
| 75 | + }, |
| 76 | + { |
| 77 | + text: 'Python', |
| 78 | + items: [ |
| 79 | + {text: 'Python', link: '/Python程序设计语言'}, |
| 80 | + {text: '最佳实践', link: '/Python最佳实践'} |
| 81 | + ], |
| 82 | + collapsed: true, |
| 83 | + }, |
| 84 | + { |
| 85 | + text: 'Infra', |
| 86 | + items: [ |
| 87 | + {text: 'Python', link: '/Python程序设计语言'}, |
| 88 | + {text: 'AI最佳实践', link: '/最佳实践'} |
| 89 | + ], |
| 90 | + collapsed: true, |
| 91 | + }, |
| 92 | + ], |
| 93 | + returnToTopLabel: '回到顶部', |
| 94 | + sidebarMenuLabel: '菜单', |
| 95 | + darkModeSwitchLabel: '主题', |
| 96 | + lightModeSwitchTitle: '切换到浅色模式', |
| 97 | + darkModeSwitchTitle: '切换到深色模式', |
| 98 | + socialLinks: [ |
| 99 | + {icon: 'github', link: 'https://github.com/wwfyde/TechNotes'} |
| 100 | + ], |
| 101 | + |
| 102 | + footer: { |
| 103 | + message: 'Released under the MIT License.', |
| 104 | + copyright: 'Copyright © 2019-present Evan You' |
| 105 | + } |
| 106 | + } |
| 107 | +}) |
0 commit comments