|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +export const shared = defineConfig({ |
| 4 | + title: 'Vue3 Component Library Starter Template', |
| 5 | + rewrites: { |
| 6 | + 'en/:rest*': ':rest*', |
| 7 | + }, |
| 8 | + lastUpdated: true, |
| 9 | + cleanUrls: true, |
| 10 | + metaChunk: true, |
| 11 | + sitemap: { |
| 12 | + hostname: 'https://starter-lib-vue3.netlify.app/', |
| 13 | + transformItems(items) { |
| 14 | + return items.filter(item => !item.url.includes('migration')) |
| 15 | + }, |
| 16 | + }, |
| 17 | + head: [ |
| 18 | + ['link', { rel: 'icon', href: '/favicon.ico' }], |
| 19 | + ['link', { rel: 'icon', type: 'image/png', href: '/logo.png' }], |
| 20 | + ['meta', { name: 'theme-color', content: '#FF057C' }], |
| 21 | + ['meta', { property: 'og:type', content: 'website' }], |
| 22 | + ['meta', { property: 'og:locale', content: 'en' }], |
| 23 | + ['meta', { property: 'og:title', content: 'Vue3 Component Library Starter Template' }], |
| 24 | + ['meta', { property: 'og:site_name', content: 'Vue3 Component Library Starter Template' }], |
| 25 | + ['meta', { property: 'og:image', content: '/logo.png' }], |
| 26 | + ['meta', { property: 'og:url', content: 'https://starter-lib-vue3.netlify.app/' }], |
| 27 | + ], |
| 28 | + themeConfig: { |
| 29 | + logo: '/logo.png', |
| 30 | + socialLinks: [ |
| 31 | + { icon: 'github', link: 'https://github.com/starter-collective/starter-lib-vue3' }, |
| 32 | + ], |
| 33 | + search: { |
| 34 | + provider: 'local', |
| 35 | + }, |
| 36 | + }, |
| 37 | + markdown: { |
| 38 | + theme: { |
| 39 | + light: 'github-light', |
| 40 | + dark: 'github-dark', |
| 41 | + }, |
| 42 | + }, |
| 43 | +}) |
0 commit comments