From fab8bae4a6711f06863eac4732d267dcd57fdb6b Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 18:45:02 +0700 Subject: [PATCH 1/3] chore: set base to /docs/cora/ for unified routing --- docs/.vitepress/config.mts | 49 +++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 04ff799..b5c6c82 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,35 +1,30 @@ import { defineConfig } from 'vitepress' export default defineConfig({ - title: 'cora', + 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' }], + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/docs/cora/favicon.svg' }], + ['link', { rel: 'alternate icon', type: 'image/png', href: '/docs/cora/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: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/og.png' }], - ['meta', { property: 'og:url', content: 'https://codecora.dev/' }], + ['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', + logo: '/docs/cora/logo.svg', nav: [ - { text: 'Docs', link: '/getting-started' }, - { text: 'Examples', link: '/examples' }, - { text: 'Changelog', link: '/changelog' }, - { text: 'Roadmap', link: '/roadmap' }, - { - text: 'v0.5.1', - items: [ - { text: 'GitHub', link: 'https://github.com/codecoradev/cora-cli' }, - { text: 'Releases', link: 'https://github.com/codecoradev/cora-cli/releases' }, - ], - }, + { text: 'Codecora', link: 'https://codecora.dev' }, + { text: 'Docs', link: '/docs/cora/getting-started' }, + { text: 'Examples', link: '/docs/cora/examples' }, + { text: 'Changelog', link: '/docs/cora/changelog' }, + { text: 'GitHub', link: 'https://github.com/codecoradev/cora-cli' }, ], sidebar: { @@ -37,25 +32,25 @@ export default defineConfig({ { text: 'Getting Started', items: [ - { text: 'Quick Start', link: '/getting-started' }, - { text: 'Installation', link: '/installation' }, + { text: 'Quick Start', link: '/docs/cora/getting-started' }, + { text: 'Installation', link: '/docs/cora/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: 'Usage', link: '/docs/cora/usage' }, + { text: 'Configuration', link: '/docs/cora/configuration' }, + { text: 'Providers', link: '/docs/cora/providers' }, + { text: 'CLI Reference', link: '/docs/cora/cli-reference' }, + { text: 'Examples', link: '/docs/cora/examples' }, ], }, { text: 'Project', items: [ - { text: 'Changelog', link: '/changelog' }, - { text: 'Roadmap', link: '/roadmap' }, + { text: 'Changelog', link: '/docs/cora/changelog' }, + { text: 'Roadmap', link: '/docs/cora/roadmap' }, ], }, ], From ecbb834eba0074af569273bffb38518d512e5a4a Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 18:45:48 +0700 Subject: [PATCH 2/3] ci: add CF Pages deploy workflow for unified routing --- .github/workflows/deploy-website.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 77de9e0..94bf0f5 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -13,8 +13,8 @@ concurrency: cancel-in-progress: false permissions: - id-token: write contents: read + deployments: write env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -23,9 +23,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 24 cache: npm @@ -36,7 +36,7 @@ jobs: working-directory: docs - name: Build - run: npm run docs:build + run: npm run build working-directory: docs - name: Verify build output @@ -47,7 +47,7 @@ jobs: fi - name: Deploy to Cloudflare Pages - uses: cloudflare/wrangler-action@v3 + uses: cloudflare/wrangler-action@v4 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} From 204cff254e29ca0544e5506c0d73f1034586340b Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 18:57:53 +0700 Subject: [PATCH 3/3] fix: remove double base prefix in links --- docs/.vitepress/config.mts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index b5c6c82..3f4037f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -6,8 +6,8 @@ export default defineConfig({ base: '/docs/cora/', head: [ - ['link', { rel: 'icon', type: 'image/svg+xml', href: '/docs/cora/favicon.svg' }], - ['link', { rel: 'alternate icon', type: 'image/png', href: '/docs/cora/favicon.png' }], + ['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' }], @@ -17,13 +17,13 @@ export default defineConfig({ ], themeConfig: { - logo: '/docs/cora/logo.svg', + logo: '/logo.svg', nav: [ { text: 'Codecora', link: 'https://codecora.dev' }, - { text: 'Docs', link: '/docs/cora/getting-started' }, - { text: 'Examples', link: '/docs/cora/examples' }, - { text: 'Changelog', link: '/docs/cora/changelog' }, + { text: 'Docs', link: '/getting-started' }, + { text: 'Examples', link: '/examples' }, + { text: 'Changelog', link: '/changelog' }, { text: 'GitHub', link: 'https://github.com/codecoradev/cora-cli' }, ], @@ -32,25 +32,25 @@ export default defineConfig({ { text: 'Getting Started', items: [ - { text: 'Quick Start', link: '/docs/cora/getting-started' }, - { text: 'Installation', link: '/docs/cora/installation' }, + { text: 'Quick Start', link: '/getting-started' }, + { text: 'Installation', link: '/installation' }, ], }, { text: 'Guides', items: [ - { text: 'Usage', link: '/docs/cora/usage' }, - { text: 'Configuration', link: '/docs/cora/configuration' }, - { text: 'Providers', link: '/docs/cora/providers' }, - { text: 'CLI Reference', link: '/docs/cora/cli-reference' }, - { text: 'Examples', link: '/docs/cora/examples' }, + { 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: '/docs/cora/changelog' }, - { text: 'Roadmap', link: '/docs/cora/roadmap' }, + { text: 'Changelog', link: '/changelog' }, + { text: 'Roadmap', link: '/roadmap' }, ], }, ],