|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | +import { version } from '../../package.json' |
| 3 | +import { applyPlugins } from './plugins/code' |
| 4 | + |
| 5 | +const components = [ |
| 6 | + { text: 'Accordion', link: '/guide/components/accordion.md' }, |
| 7 | + { text: 'Alert', link: '/guide/components/alert.md' }, |
| 8 | + { text: 'Avatar', link: '/guide/components/avatar.md' }, |
| 9 | + { text: 'Badge', link: '/guide/components/badge.md' }, |
| 10 | + { text: 'Button', link: '/guide/components/button.md' }, |
| 11 | + { text: 'Checkbox', link: '/guide/components/checkbox.md' }, |
| 12 | + { text: 'Divider', link: '/guide/components/divider.md' }, |
| 13 | + { text: 'Icon', link: '/guide/components/icon.md' }, |
| 14 | + { text: 'Input', link: '/guide/components/input.md' }, |
| 15 | + { text: 'Kbd', link: '/guide/components/kbd.md' }, |
| 16 | + { text: 'Modal', link: '/guide/components/modal.md' }, |
| 17 | + { text: 'Switch', link: '/guide/components/switch.md' }, |
| 18 | + { text: 'Tag', link: '/guide/components/tag.md' }, |
| 19 | +] |
| 20 | +// https://vitepress.dev/reference/site-config |
| 21 | +export default defineConfig({ |
| 22 | + vite: { plugins: [] }, |
| 23 | + title: 'Spark UI', |
| 24 | + description: 'Experience The Magic Of Animated Components. Crafted With Vue, TypeScript, TailwindCss And Vueuse Motion ✨', |
| 25 | + head: [ |
| 26 | + [ |
| 27 | + 'link', |
| 28 | + { |
| 29 | + rel: 'icon', |
| 30 | + type: 'image/svg+xml', |
| 31 | + href: '/icon.png', |
| 32 | + }, |
| 33 | + ], |
| 34 | + ['meta', { property: 'og:type', content: 'website' }], |
| 35 | + [ |
| 36 | + 'link', |
| 37 | + { href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap', rel: 'stylesheet' }, |
| 38 | + ], |
| 39 | + ], |
| 40 | + themeConfig: { |
| 41 | + search: { |
| 42 | + provider: 'algolia', |
| 43 | + options: { |
| 44 | + appId: 'J80WVGDCRV', |
| 45 | + apiKey: 'ca4b17a48a4b73178c772c805c02a211', |
| 46 | + indexName: 'ui-windi', |
| 47 | + }, |
| 48 | + }, |
| 49 | + logo: '../icon.png', |
| 50 | + // https://vitepress.dev/reference/default-theme-config |
| 51 | + nav: [ |
| 52 | + { text: 'Guide', items: [ |
| 53 | + { text: 'Introduction', link: '/guide/getting-started/index.md' }, |
| 54 | + { text: 'Installation', link: '/guide/getting-started/installation.md' }, |
| 55 | + { text: 'Theme', link: '/guide/getting-started/theme.md' }, |
| 56 | + ] }, |
| 57 | + { text: 'Components', items: components }, |
| 58 | + { text: 'Showcase', link: '' }, |
| 59 | + { text: `v${version}`, link: '' }, |
| 60 | + |
| 61 | + ], |
| 62 | + |
| 63 | + sidebar: { |
| 64 | + '/guide/': [ |
| 65 | + { |
| 66 | + text: '✨ Getting Started', |
| 67 | + collapsed: true, |
| 68 | + items: [ |
| 69 | + { text: 'Introduction', link: '/guide/getting-started/index.md' }, |
| 70 | + { text: 'Installation', link: '/guide/getting-started/installation.md' }, |
| 71 | + { text: 'Theme', link: '/guide/getting-started/theme.md' }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + |
| 75 | + { |
| 76 | + text: '📦 Components', |
| 77 | + collapsed: true, |
| 78 | + items: components, |
| 79 | + }, |
| 80 | + ], |
| 81 | + }, |
| 82 | + |
| 83 | + socialLinks: [ |
| 84 | + { icon: 'github', link: 'https://github.com/selemondev/windi-ui' }, |
| 85 | + ], |
| 86 | + footer: { |
| 87 | + message: 'Released under the MIT License.', |
| 88 | + copyright: 'Copyright © 2023-PRESENT Selemon Brahanu', |
| 89 | + }, |
| 90 | + }, |
| 91 | + markdown: { |
| 92 | + config: (md) => { |
| 93 | + applyPlugins(md) |
| 94 | + }, |
| 95 | + theme: { |
| 96 | + light: 'vitesse-light', |
| 97 | + dark: 'vitesse-dark', |
| 98 | + }, |
| 99 | + }, |
| 100 | +}) |
0 commit comments