|
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + lang: 'en-US', |
| 6 | + title: 'nStudio Plugins', |
| 7 | + description: 'NativeScript plugins from nStudio. Native performance, beautiful APIs, and production-grade tested.', |
| 8 | + |
| 9 | + srcDir: './content', |
| 10 | + cleanUrls: true, |
| 11 | + appearance: true, |
| 12 | + |
| 13 | + markdown: { |
| 14 | + theme: { |
| 15 | + light: 'github-light', |
| 16 | + dark: 'github-dark', |
| 17 | + }, |
| 18 | + lineNumbers: false, |
| 19 | + }, |
| 20 | + |
| 21 | + head: [ |
| 22 | + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], |
| 23 | + ['meta', { name: 'theme-color', content: '#F75930' }], |
| 24 | + ['meta', { property: 'og:type', content: 'website' }], |
| 25 | + ['meta', { property: 'og:site_name', content: 'nStudio Plugins' }], |
| 26 | + ['meta', { property: 'og:image', content: 'https://plugins.nstudio.io/og-image.png' }], |
| 27 | + ['meta', { name: 'twitter:card', content: 'summary_large_image' }], |
| 28 | + ['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }], |
| 29 | + ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }], |
| 30 | + ['link', { href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap', rel: 'stylesheet' }], |
| 31 | + ], |
| 32 | + |
| 33 | + themeConfig: { |
| 34 | + logo: '/logo.svg', |
| 35 | + |
| 36 | + nav: [ |
| 37 | + { text: 'Plugins', link: '/' }, |
| 38 | + { text: 'nCharts', link: '/ncharts/' }, |
| 39 | + { text: 'nStudio', link: 'https://nstudio.io' }, |
| 40 | + ], |
| 41 | + |
| 42 | + sidebar: { |
| 43 | + '/ncharts/': [ |
| 44 | + { |
| 45 | + text: 'Getting Started', |
| 46 | + items: [ |
| 47 | + { text: 'Introduction', link: '/ncharts/' }, |
| 48 | + { text: 'Installation', link: '/ncharts/installation' }, |
| 49 | + { text: 'Quick Start', link: '/ncharts/quick-start' }, |
| 50 | + ], |
| 51 | + }, |
| 52 | + { |
| 53 | + text: 'Chart Types', |
| 54 | + items: [ |
| 55 | + { text: 'Line Chart', link: '/ncharts/charts/line-chart' }, |
| 56 | + { text: 'Bar Chart', link: '/ncharts/charts/bar-chart' }, |
| 57 | + { text: 'Horizontal Bar', link: '/ncharts/charts/horizontal-bar-chart' }, |
| 58 | + { text: 'Pie Chart', link: '/ncharts/charts/pie-chart' }, |
| 59 | + { text: 'Scatter Chart', link: '/ncharts/charts/scatter-chart' }, |
| 60 | + { text: 'Bubble Chart', link: '/ncharts/charts/bubble-chart' }, |
| 61 | + { text: 'Candlestick Chart', link: '/ncharts/charts/candlestick-chart' }, |
| 62 | + { text: 'Radar Chart', link: '/ncharts/charts/radar-chart' }, |
| 63 | + { text: 'Combined Chart', link: '/ncharts/charts/combined-chart' }, |
| 64 | + ], |
| 65 | + }, |
| 66 | + { |
| 67 | + text: 'Configuration', |
| 68 | + items: [ |
| 69 | + { text: 'Animation', link: '/ncharts/config/animation' }, |
| 70 | + { text: 'Legend', link: '/ncharts/config/legend' }, |
| 71 | + { text: 'Axes', link: '/ncharts/config/axes' }, |
| 72 | + { text: 'Markers', link: '/ncharts/config/markers' }, |
| 73 | + { text: 'Styling', link: '/ncharts/config/styling' }, |
| 74 | + ], |
| 75 | + }, |
| 76 | + { |
| 77 | + text: 'API Reference', |
| 78 | + items: [ |
| 79 | + { text: 'Types', link: '/ncharts/api/types' }, |
| 80 | + { text: 'Methods', link: '/ncharts/api/methods' }, |
| 81 | + { text: 'Events', link: '/ncharts/api/events' }, |
| 82 | + ], |
| 83 | + }, |
| 84 | + ], |
| 85 | + }, |
| 86 | + |
| 87 | + socialLinks: [ |
| 88 | + { icon: 'github', link: 'https://github.com/nstudio' }, |
| 89 | + { icon: 'twitter', link: 'https://twitter.com/teamnstudio' }, |
| 90 | + ], |
| 91 | + |
| 92 | + footer: { |
| 93 | + // message: 'Released under the Apache-2.0 License.', |
| 94 | + copyright: `Copyright © ${new Date().getFullYear()} nStudio`, |
| 95 | + }, |
| 96 | + |
| 97 | + search: { |
| 98 | + provider: 'local', |
| 99 | + }, |
| 100 | + }, |
| 101 | +}); |
0 commit comments