diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 8b13789..3f4037f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1 +1,81 @@ +import { defineConfig } from 'vitepress' +export default defineConfig({ + title: 'Cora', + description: 'AI-Powered Code Review CLI — BYOK, zero config, runs in your terminal', + base: '/docs/cora/', + + head: [ + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }], + ['link', { rel: 'alternate icon', type: 'image/png', href: '/favicon.png' }], + ['meta', { name: 'theme-color', content: '#6366f1' }], + ['meta', { property: 'og:type', content: 'website' }], + ['meta', { property: 'og:title', content: 'Cora — AI Code Review CLI' }], + ['meta', { property: 'og:description', content: 'BYOK, zero config, runs in your terminal' }], + ['meta', { property: 'og:image', content: 'https://codecora.dev/docs/cora/og.png' }], + ['meta', { property: 'og:url', content: 'https://codecora.dev/docs/cora/' }], + ], + + themeConfig: { + logo: '/logo.svg', + + nav: [ + { text: 'Codecora', link: 'https://codecora.dev' }, + { text: 'Docs', link: '/getting-started' }, + { text: 'Examples', link: '/examples' }, + { text: 'Changelog', link: '/changelog' }, + { text: 'GitHub', link: 'https://github.com/codecoradev/cora-cli' }, + ], + + sidebar: { + '/': [ + { + text: 'Getting Started', + items: [ + { text: 'Quick Start', link: '/getting-started' }, + { text: 'Installation', link: '/installation' }, + ], + }, + { + text: 'Guides', + items: [ + { text: 'Usage', link: '/usage' }, + { text: 'Configuration', link: '/configuration' }, + { text: 'Providers', link: '/providers' }, + { text: 'CLI Reference', link: '/cli-reference' }, + { text: 'Examples', link: '/examples' }, + ], + }, + { + text: 'Project', + items: [ + { text: 'Changelog', link: '/changelog' }, + { text: 'Roadmap', link: '/roadmap' }, + ], + }, + ], + }, + + search: { + provider: 'local', + }, + + socialLinks: [ + { icon: 'github', link: 'https://github.com/codecoradev/cora-cli' }, + ], + + footer: { + message: 'Released under the MIT License.', + copyright: '© 2025-present codecoradev', + }, + + editLink: { + pattern: 'https://github.com/codecoradev/cora-cli/edit/develop/docs/:path', + text: 'Edit this page on GitHub', + }, + }, + + lastUpdated: true, + + ignoreDeadLinks: [/^https?:\/\/localhost/], +})