|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | +import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' |
| 3 | + |
| 4 | +// https://vitepress.dev/reference/site-config |
| 5 | +export default defineConfig({ |
| 6 | + title: "flow", |
| 7 | + description: "Local developer automation platform that flows with you.", |
| 8 | + base: '/', |
| 9 | + outDir: './dist', |
| 10 | + |
| 11 | + head: [ |
| 12 | + ['link', { rel: 'icon', href: '/favicon.ico' }] |
| 13 | + ], |
| 14 | + |
| 15 | + markdown: { |
| 16 | + config(md) { |
| 17 | + md.use(tabsMarkdownPlugin) |
| 18 | + }, |
| 19 | + }, |
| 20 | + |
| 21 | + themeConfig: { |
| 22 | + logo: { |
| 23 | + light: '/logo-light.png', |
| 24 | + dark: '/logo-dark.png' |
| 25 | + }, |
| 26 | + |
| 27 | + siteTitle: false, |
| 28 | + |
| 29 | + nav: [ |
| 30 | + { text: 'Home', link: '/' }, |
| 31 | + { text: 'Guides', link: '/guides/', activeMatch: '/guides/'}, |
| 32 | + { text: 'CLI Reference', link: '/cli/', activeMatch: '/cli/' }, |
| 33 | + { text: 'Config Reference', link: '/types/', activeMatch: '/types/' } |
| 34 | + ], |
| 35 | + |
| 36 | + sidebar: { |
| 37 | + '/guides/': [ |
| 38 | + { |
| 39 | + text: 'User Guides', |
| 40 | + items: [ |
| 41 | + { text: 'Overview', link: '/guides/' }, |
| 42 | + { text: 'Getting Started', |
| 43 | + items: [ |
| 44 | + { text: 'Concepts', link: '/guides/concepts' }, |
| 45 | + { text: 'Your First Workflow', link: '/guides/first-workflow' }, |
| 46 | + ] |
| 47 | + }, |
| 48 | + { text: 'Essentials', |
| 49 | + items: [ |
| 50 | + { text: 'Executables', link: '/guides/executables' }, |
| 51 | + { text: 'Workspaces', link: '/guides/workspaces' }, |
| 52 | + { text: 'Secrets', link: '/guides/secrets' }, |
| 53 | + ]}, |
| 54 | + { text: 'Advanced', |
| 55 | + items: [ |
| 56 | + { text: 'Imported Executables', link: '/guides/generated-config' }, |
| 57 | + { text: 'Templates & Workflow Generation', link: '/guides/templating' }, |
| 58 | + { text: 'Advanced Workflows', link: '/guides/advanced' }, |
| 59 | + { text: 'Interactive UI', link: '/guides/interactive' }, |
| 60 | + { text: 'Integrations', link: '/guides/integrations' }, |
| 61 | + ]}, |
| 62 | + ] |
| 63 | + } |
| 64 | + ], |
| 65 | + '/cli/': [ |
| 66 | + { |
| 67 | + text: 'CLI Reference', |
| 68 | + items: [ |
| 69 | + { text: 'Overview', link: '/cli/flow' }, |
| 70 | + { text: 'flow browse', link: '/cli/flow_browse' }, |
| 71 | + { text: 'flow exec', link: '/cli/flow_exec' }, |
| 72 | + { text: 'flow logs', link: '/cli/flow_logs' }, |
| 73 | + { text: 'flow mcp', link: '/cli/flow_mcp' }, |
| 74 | + { text: 'flow sync', link: '/cli/flow_sync' }, |
| 75 | + { |
| 76 | + text: 'Cache', |
| 77 | + collapsed: true, |
| 78 | + items: [ |
| 79 | + { text: 'flow cache', link: '/cli/flow_cache' }, |
| 80 | + { text: 'flow cache clear', link: '/cli/flow_cache_clear' }, |
| 81 | + { text: 'flow cache get', link: '/cli/flow_cache_get' }, |
| 82 | + { text: 'flow cache list', link: '/cli/flow_cache_list' }, |
| 83 | + { text: 'flow cache remove', link: '/cli/flow_cache_remove' }, |
| 84 | + { text: 'flow cache set', link: '/cli/flow_cache_set' } |
| 85 | + ] |
| 86 | + }, |
| 87 | + { |
| 88 | + text: 'Config', |
| 89 | + collapsed: true, |
| 90 | + items: [ |
| 91 | + { text: 'flow config', link: '/cli/flow_config' }, |
| 92 | + { text: 'flow config get', link: '/cli/flow_config_get' }, |
| 93 | + { text: 'flow config reset', link: '/cli/flow_config_reset' }, |
| 94 | + { text: 'flow config set', link: '/cli/flow_config_set' }, |
| 95 | + { text: 'flow config set log-mode', link: '/cli/flow_config_set_log-mode' }, |
| 96 | + { text: 'flow config set namespace', link: '/cli/flow_config_set_namespace' }, |
| 97 | + { text: 'flow config set notifications', link: '/cli/flow_config_set_notifications' }, |
| 98 | + { text: 'flow config set theme', link: '/cli/flow_config_set_theme' }, |
| 99 | + { text: 'flow config set timeout', link: '/cli/flow_config_set_timeout' }, |
| 100 | + { text: 'flow config set tui', link: '/cli/flow_config_set_tui' }, |
| 101 | + { text: 'flow config set workspace', link: '/cli/flow_config_set_workspace' }, |
| 102 | + { text: 'flow config set workspace-mode', link: '/cli/flow_config_set_workspace-mode' } |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + text: 'Secret', |
| 107 | + collapsed: true, |
| 108 | + items: [ |
| 109 | + { text: 'flow secret', link: '/cli/flow_secret' }, |
| 110 | + { text: 'flow secret get', link: '/cli/flow_secret_get' }, |
| 111 | + { text: 'flow secret list', link: '/cli/flow_secret_list' }, |
| 112 | + { text: 'flow secret remove', link: '/cli/flow_secret_remove' }, |
| 113 | + { text: 'flow secret set', link: '/cli/flow_secret_set' } |
| 114 | + ] |
| 115 | + }, |
| 116 | + { |
| 117 | + text: 'Template', |
| 118 | + collapsed: true, |
| 119 | + items: [ |
| 120 | + { text: 'flow template', link: '/cli/flow_template' }, |
| 121 | + { text: 'flow template add', link: '/cli/flow_template_add' }, |
| 122 | + { text: 'flow template generate', link: '/cli/flow_template_generate' }, |
| 123 | + { text: 'flow template get', link: '/cli/flow_template_get' }, |
| 124 | + { text: 'flow template list', link: '/cli/flow_template_list' } |
| 125 | + ] |
| 126 | + }, |
| 127 | + { |
| 128 | + text: 'Vault', |
| 129 | + collapsed: true, |
| 130 | + items: [ |
| 131 | + { text: 'flow vault', link: '/cli/flow_vault' }, |
| 132 | + { text: 'flow vault create', link: '/cli/flow_vault_create' }, |
| 133 | + { text: 'flow vault edit', link: '/cli/flow_vault_edit' }, |
| 134 | + { text: 'flow vault get', link: '/cli/flow_vault_get' }, |
| 135 | + { text: 'flow vault list', link: '/cli/flow_vault_list' }, |
| 136 | + { text: 'flow vault remove', link: '/cli/flow_vault_remove' }, |
| 137 | + { text: 'flow vault switch', link: '/cli/flow_vault_switch' } |
| 138 | + ] |
| 139 | + }, |
| 140 | + { |
| 141 | + text: 'Workspace', |
| 142 | + collapsed: true, |
| 143 | + items: [ |
| 144 | + { text: 'flow workspace', link: '/cli/flow_workspace' }, |
| 145 | + { text: 'flow workspace add', link: '/cli/flow_workspace_add' }, |
| 146 | + { text: 'flow workspace get', link: '/cli/flow_workspace_get' }, |
| 147 | + { text: 'flow workspace list', link: '/cli/flow_workspace_list' }, |
| 148 | + { text: 'flow workspace remove', link: '/cli/flow_workspace_remove' }, |
| 149 | + { text: 'flow workspace switch', link: '/cli/flow_workspace_switch' }, |
| 150 | + { text: 'flow workspace view', link: '/cli/flow_workspace_view' } |
| 151 | + ] |
| 152 | + } |
| 153 | + ] |
| 154 | + } |
| 155 | + ], |
| 156 | + '/types/': [ |
| 157 | + { |
| 158 | + text: 'Configuration Reference', |
| 159 | + items: [ |
| 160 | + { text: 'Overview', link: '/types/' }, |
| 161 | + { text: 'Config', link: '/types/config' }, |
| 162 | + { text: 'Flow File', link: '/types/flowfile' }, |
| 163 | + { text: 'Template', link: '/types/template' }, |
| 164 | + { text: 'Workspace', link: '/types/workspace' } |
| 165 | + ] |
| 166 | + } |
| 167 | + ], |
| 168 | + '/': [ |
| 169 | + { |
| 170 | + text: 'Getting Started', |
| 171 | + items: [ |
| 172 | + { text: 'Installation', link: '/installation' }, |
| 173 | + { text: 'Quick Start', link: '/quickstart' } |
| 174 | + ] |
| 175 | + }, |
| 176 | + { |
| 177 | + text: 'More', |
| 178 | + items: [ |
| 179 | + { text: 'User Guides', link: '/guides/' }, |
| 180 | + { text: 'CLI Reference', link: '/cli/' }, |
| 181 | + { text: 'Configuration Reference', link: '/types/' }, |
| 182 | + { text: 'Contributing', link: '/development' }, |
| 183 | + { text: 'TUI Kit', link: '/tuikit' } |
| 184 | + ] |
| 185 | + } |
| 186 | + ] |
| 187 | + }, |
| 188 | + |
| 189 | + socialLinks: [ |
| 190 | + { icon: 'github', link: 'https://github.com/flowexec/flow' }, |
| 191 | + { icon: 'discord', link: 'https://discord.gg/CtByNKNMxM' } |
| 192 | + ], |
| 193 | + |
| 194 | + search: { |
| 195 | + provider: 'local' |
| 196 | + }, |
| 197 | + |
| 198 | + outline: { |
| 199 | + level: [2, 3] |
| 200 | + } |
| 201 | + } |
| 202 | +}) |
0 commit comments