|
| 1 | +import UnoCSS from 'unocss/vite' |
| 2 | +import { defineConfig } from 'vitepress' |
| 3 | + |
| 4 | +const SidebarNav = [ |
| 5 | + { text: 'Guide', items: [ |
| 6 | + { text: 'Introduction', link: '/guide/introduction' }, |
| 7 | + { text: 'Quick Start', link: '/guide/quick-start' }, |
| 8 | + { text: 'Flexibility', link: '/guide/flexibility' }, |
| 9 | + ] }, |
| 10 | + { text: 'Advenced', items: [ |
| 11 | + { text: 'Linter & Formatter', link: '/advenced/linter-formatter' }, |
| 12 | + { text: 'TypeScript', link: '/advenced/typescript' }, |
| 13 | + { text: 'API Reference', link: '/advenced/api-reference' }, |
| 14 | + |
| 15 | + ] }, |
| 16 | + { text: 'Extra Topic', items: [ |
| 17 | + { text: 'Design Philosophy', link: '/extra/design-philosophy' }, |
| 18 | + { text: 'Contribute Guide', link: '/extra/contribute' }, |
| 19 | + { text: 'Credits', link: '/extra/credits' }, |
| 20 | + ] }, |
| 21 | +] |
| 22 | + |
| 23 | +export default defineConfig({ |
| 24 | + title: 'Vue Note', |
| 25 | + description: 'Write Vue template in code comment?', |
| 26 | + srcDir: './src', |
| 27 | + head: [ |
| 28 | + ['link', { rel: 'icon', href: '/favicon.svg', type: 'image/svg+xml' }], |
| 29 | + ], |
| 30 | + themeConfig: { |
| 31 | + logo: '/favicon.svg', |
| 32 | + nav: SidebarNav, |
| 33 | + search: { |
| 34 | + provider: 'local', |
| 35 | + }, |
| 36 | + sidebar: { |
| 37 | + '/': SidebarNav, |
| 38 | + }, |
| 39 | + socialLinks: [ |
| 40 | + { icon: 'github', link: 'https://github.com/liangmiQwQ/vue-note' }, |
| 41 | + ], |
| 42 | + editLink: { |
| 43 | + pattern: 'https://github.com/liangmiQwQ/vue-note/edit/main/packages/docs/src/:path', |
| 44 | + text: 'Suggest changes to this page', |
| 45 | + }, |
| 46 | + footer: { |
| 47 | + message: 'Released under the MIT License.', |
| 48 | + copyright: 'Copyright 2025 - Present Liang Mi', |
| 49 | + }, |
| 50 | + }, |
| 51 | + vite: { |
| 52 | + plugins: [ |
| 53 | + UnoCSS(), |
| 54 | + ], |
| 55 | + }, |
| 56 | +}) |
0 commit comments