|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + base: '/zx/', |
| 6 | + outDir: 'build', |
| 7 | + cleanUrls: true, |
| 8 | + title: 'google/zx', |
| 9 | + titleTemplate: ':title | google/zx', |
| 10 | + description: 'A tool for writing better scripts', |
| 11 | + head: [ |
| 12 | + [ |
| 13 | + 'link', |
| 14 | + { |
| 15 | + rel: 'apple-touch-icon', |
| 16 | + sizes: '180x180', |
| 17 | + href: '/zx/img/favicons/apple-touch-icon.png', |
| 18 | + }, |
| 19 | + ], |
| 20 | + [ |
| 21 | + 'link', |
| 22 | + { |
| 23 | + rel: 'icon', |
| 24 | + type: 'image/png', |
| 25 | + sizes: '32x32', |
| 26 | + href: '/zx/img/favicons/favicon-32x32.png', |
| 27 | + }, |
| 28 | + ], |
| 29 | + [ |
| 30 | + 'link', |
| 31 | + { |
| 32 | + rel: 'icon', |
| 33 | + type: 'image/png', |
| 34 | + sizes: '16x16', |
| 35 | + href: '/zx/img/favicons/favicon-16x16.png', |
| 36 | + }, |
| 37 | + ], |
| 38 | + [ |
| 39 | + 'link', |
| 40 | + { |
| 41 | + rel: 'mask-icon', |
| 42 | + href: '/zx/img/favicons/safari-pinned-tab.svg', |
| 43 | + color: '#3a0839', |
| 44 | + }, |
| 45 | + ], |
| 46 | + ['link', { rel: 'shortcut icon', href: '/zx/img/favicons/favicon.ico' }], |
| 47 | + ['meta', { name: 'og:image', content: '/zx/img/og-image.png' }], |
| 48 | + ['meta', { name: 'twitter:image', content: '/zx/img/og-image.png' }], |
| 49 | + ], |
| 50 | + themeConfig: { |
| 51 | + logo: '/img/logo.svg', |
| 52 | + // https://vitepress.dev/reference/default-theme-config |
| 53 | + nav: [ |
| 54 | + { text: 'Home', link: '/' }, |
| 55 | + { text: 'Docs', link: '/getting-started' }, |
| 56 | + { |
| 57 | + text: 'v8', |
| 58 | + items: [ |
| 59 | + { text: 'v8', link: '/migration-from-v7' }, |
| 60 | + { text: 'v7', link: '/v7/api' }, |
| 61 | + ], |
| 62 | + }, |
| 63 | + ], |
| 64 | + |
| 65 | + sidebar: { |
| 66 | + '/': [ |
| 67 | + { |
| 68 | + text: 'Docs', |
| 69 | + items: [ |
| 70 | + { text: 'Getting Started', link: '/getting-started' }, |
| 71 | + { text: 'Setup', link: '/setup' }, |
| 72 | + { text: 'API Reference', link: '/api' }, |
| 73 | + { text: 'CLI Usage', link: '/cli' }, |
| 74 | + { text: 'Configuration', link: '/configuration' }, |
| 75 | + { text: 'Process Promise', link: '/process-promise' }, |
| 76 | + { text: 'Contribution Guide', link: '/contribution' }, |
| 77 | + { text: 'Migration from v7', link: '/migration-from-v7' }, |
| 78 | + ], |
| 79 | + }, |
| 80 | + { |
| 81 | + text: 'FAQ', |
| 82 | + link: '/faq', |
| 83 | + items: [ |
| 84 | + { text: 'Quotes', link: '/quotes' }, |
| 85 | + { text: 'TypeScript', link: '/typescript' }, |
| 86 | + { text: 'Markdown Scripts', link: '/markdown-scripts' }, |
| 87 | + { text: 'Known Issues', link: '/known-issues' }, |
| 88 | + ], |
| 89 | + }, |
| 90 | + ], |
| 91 | + |
| 92 | + '/v7/': [ |
| 93 | + { |
| 94 | + text: 'Docs (v7)', |
| 95 | + items: [ |
| 96 | + { text: 'Getting Started', link: '/v7/getting-started' }, |
| 97 | + { text: 'Process Promise', link: '/v7/process-promise' }, |
| 98 | + { text: 'API Reference', link: '/v7/api' }, |
| 99 | + { text: 'Configuration', link: '/v7/configuration' }, |
| 100 | + { text: 'CLI Usage', link: '/v7/cli' }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + { |
| 104 | + text: 'FAQ', |
| 105 | + link: '/v7/faq', |
| 106 | + items: [ |
| 107 | + { text: 'Quotes', link: '/v7/quotes' }, |
| 108 | + { text: 'TypeScript', link: '/v7/typescript' }, |
| 109 | + { text: 'Markdown Scripts', link: '/v7/markdown-scripts' }, |
| 110 | + { text: 'Known Issues', link: '/v7/known-issues' }, |
| 111 | + ], |
| 112 | + }, |
| 113 | + ], |
| 114 | + }, |
| 115 | + |
| 116 | + socialLinks: [{ icon: 'github', link: 'https://github.com/google/zx' }], |
| 117 | + |
| 118 | + editLink: { |
| 119 | + pattern: 'https://github.com/google/zx/blob/main/docs/:path', |
| 120 | + }, |
| 121 | + |
| 122 | + footer: { |
| 123 | + message: |
| 124 | + 'Disclaimer: This is not an officially supported Google product.', |
| 125 | + }, |
| 126 | + |
| 127 | + search: { |
| 128 | + provider: 'local', |
| 129 | + }, |
| 130 | + }, |
| 131 | +}) |
0 commit comments