|
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + title: 'Vyuh Node Flow', |
| 5 | + description: |
| 6 | + 'A flexible, high-performance node-based flow editor for Flutter applications', |
| 7 | + cleanUrls: true, |
| 8 | + |
| 9 | + head: [ |
| 10 | + ['link', { rel: 'icon', href: '/icon.svg', type: 'image/svg+xml' }], |
| 11 | + ['meta', { property: 'og:type', content: 'website' }], |
| 12 | + ['meta', { property: 'og:title', content: 'Vyuh Node Flow - Visual Flow Editor for Flutter' }], |
| 13 | + ['meta', { property: 'og:description', content: 'A flexible, high-performance node-based flow editor for building workflow editors, visual programming interfaces, and interactive diagrams in Flutter.' }], |
| 14 | + ['meta', { property: 'og:image', content: 'https://flow.vyuh.tech/node-flow-banner.png' }], |
| 15 | + ['meta', { property: 'og:url', content: 'https://flow.vyuh.tech' }], |
| 16 | + ['meta', { name: 'twitter:card', content: 'summary_large_image' }], |
| 17 | + ['meta', { name: 'twitter:title', content: 'Vyuh Node Flow - Visual Flow Editor for Flutter' }], |
| 18 | + ['meta', { name: 'twitter:description', content: 'A flexible, high-performance node-based flow editor for building workflow editors, visual programming interfaces, and interactive diagrams in Flutter.' }], |
| 19 | + ['meta', { name: 'twitter:image', content: 'https://flow.vyuh.tech/node-flow-banner.png' }], |
| 20 | + ], |
| 21 | + |
| 22 | + // Ignore dead links to planned pages that don't exist yet |
| 23 | + ignoreDeadLinks: [ |
| 24 | + /\/docs\/advanced\/validation/, |
| 25 | + /\/docs\/advanced\/connection-labels/, |
| 26 | + /\/docs\/api\/shortcuts-actions/, |
| 27 | + /\/docs\/api\/custom-port-shapes/, |
| 28 | + /\/docs\/theming\/node-theme/, |
| 29 | + /\/docs\/theming\/connection-theme/, |
| 30 | + /\/docs\/examples\/custom-nodes/, |
| 31 | + /\/docs\/examples\/custom-ports/, |
| 32 | + ], |
| 33 | + |
| 34 | + themeConfig: { |
| 35 | + logo: '/icon.svg', |
| 36 | + |
| 37 | + nav: [ |
| 38 | + { text: 'Docs', link: '/docs/getting-started/installation' }, |
| 39 | + { text: 'Examples', link: '/docs/examples/' }, |
| 40 | + { |
| 41 | + text: 'Links', |
| 42 | + items: [ |
| 43 | + { |
| 44 | + text: 'GitHub', |
| 45 | + link: 'https://github.com/vyuh-tech/vyuh_node_flow', |
| 46 | + }, |
| 47 | + { |
| 48 | + text: 'pub.dev', |
| 49 | + link: 'https://pub.dev/packages/vyuh_node_flow', |
| 50 | + }, |
| 51 | + { text: 'Live Demo', link: 'https://flow.demo.vyuh.tech' }, |
| 52 | + ], |
| 53 | + }, |
| 54 | + ], |
| 55 | + |
| 56 | + sidebar: { |
| 57 | + '/docs/': [ |
| 58 | + { |
| 59 | + text: 'Getting Started', |
| 60 | + items: [ |
| 61 | + { text: 'Installation', link: '/docs/getting-started/installation' }, |
| 62 | + { text: 'Quick Start', link: '/docs/getting-started/quick-start' }, |
| 63 | + ], |
| 64 | + }, |
| 65 | + { |
| 66 | + text: 'Core Concepts', |
| 67 | + items: [ |
| 68 | + { text: 'Architecture', link: '/docs/core-concepts/architecture' }, |
| 69 | + { text: 'Controller', link: '/docs/core-concepts/controller' }, |
| 70 | + { text: 'Configuration', link: '/docs/core-concepts/configuration' }, |
| 71 | + { text: 'Nodes', link: '/docs/core-concepts/nodes' }, |
| 72 | + { text: 'Ports', link: '/docs/core-concepts/ports' }, |
| 73 | + { text: 'Connections', link: '/docs/core-concepts/connections' }, |
| 74 | + ], |
| 75 | + }, |
| 76 | + { |
| 77 | + text: 'Components', |
| 78 | + items: [ |
| 79 | + { text: 'NodeFlowEditor', link: '/docs/components/node-flow-editor' }, |
| 80 | + { text: 'NodeFlowViewer', link: '/docs/components/node-flow-viewer' }, |
| 81 | + { text: 'NodeWidget', link: '/docs/components/node-widget' }, |
| 82 | + { text: 'PortWidget', link: '/docs/components/port-widget' }, |
| 83 | + { text: 'ConnectionsLayer', link: '/docs/components/connections-layer' }, |
| 84 | + { text: 'Annotations', link: '/docs/components/annotations' }, |
| 85 | + { text: 'Minimap', link: '/docs/components/minimap' }, |
| 86 | + ], |
| 87 | + }, |
| 88 | + { |
| 89 | + text: 'Examples', |
| 90 | + items: [{ text: 'Overview', link: '/docs/examples/' }], |
| 91 | + }, |
| 92 | + { |
| 93 | + text: 'Theming', |
| 94 | + items: [ |
| 95 | + { text: 'Overview', link: '/docs/theming/overview' }, |
| 96 | + { text: 'Connection Styles', link: '/docs/theming/connection-styles' }, |
| 97 | + { text: 'Connection Effects', link: '/docs/theming/connection-effects' }, |
| 98 | + { text: 'Port Shapes', link: '/docs/theming/port-shapes' }, |
| 99 | + { text: 'Port Labels', link: '/docs/theming/port-labels' }, |
| 100 | + { text: 'Grid Styles', link: '/docs/theming/grid-styles' }, |
| 101 | + { text: 'Node Shapes', link: '/docs/theming/node-shapes' }, |
| 102 | + ], |
| 103 | + }, |
| 104 | + { |
| 105 | + text: 'Advanced', |
| 106 | + items: [ |
| 107 | + { text: 'Annotations', link: '/docs/advanced/annotations' }, |
| 108 | + { text: 'Events', link: '/docs/advanced/events' }, |
| 109 | + { text: 'Serialization', link: '/docs/advanced/serialization' }, |
| 110 | + { text: 'Keyboard Shortcuts', link: '/docs/advanced/keyboard-shortcuts' }, |
| 111 | + { text: 'Shortcuts & Actions', link: '/docs/advanced/shortcuts-actions' }, |
| 112 | + ], |
| 113 | + }, |
| 114 | + { |
| 115 | + text: 'API Reference', |
| 116 | + items: [ |
| 117 | + { text: 'Overview', link: '/docs/api-reference/' }, |
| 118 | + { text: 'Controller', link: '/docs/api-reference/controller' }, |
| 119 | + { text: 'Node', link: '/docs/api-reference/node' }, |
| 120 | + { text: 'Port', link: '/docs/api-reference/port' }, |
| 121 | + { text: 'Connection', link: '/docs/api-reference/connection' }, |
| 122 | + { text: 'Events', link: '/docs/api-reference/events' }, |
| 123 | + { text: 'Theme', link: '/docs/api-reference/theme' }, |
| 124 | + ], |
| 125 | + }, |
| 126 | + ], |
| 127 | + }, |
| 128 | + |
| 129 | + socialLinks: [ |
| 130 | + { icon: 'github', link: 'https://github.com/vyuh-tech/vyuh_node_flow' }, |
| 131 | + ], |
| 132 | + |
| 133 | + search: { |
| 134 | + provider: 'local', |
| 135 | + }, |
| 136 | + |
| 137 | + editLink: { |
| 138 | + pattern: |
| 139 | + 'https://github.com/vyuh-tech/vyuh_node_flow/edit/main/website/:path', |
| 140 | + }, |
| 141 | + }, |
| 142 | +}); |
0 commit comments