From 397c36ebcfed8f980db17f01cb57a561c6597c2e Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:12:09 +0700 Subject: [PATCH 1/9] fix: remove --branch=main --- .github/workflows/deploy-website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 862e081..48b9e9e 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -52,4 +52,4 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} preCommands: npx wrangler pages project create cora-cli --production-branch=main || true - command: pages deploy docs/.vitepress/dist/ --project-name=cora-cli --commit-dirty=true --branch=main + command: pages deploy docs/.vitepress/dist/ --project-name=cora-cli --commit-dirty=true From 2db334d4c933ada81a15f084a09a44412222e946 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:31:33 +0700 Subject: [PATCH 2/9] fix: remove VitePress base (routing handled by Worker) --- docs/.vitepress/config.mts | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 3f4037f..f602249 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,7 +3,6 @@ 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' }], From 66e7c26ecc03d4ce2d08221fc746ea7655358094 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:33:16 +0700 Subject: [PATCH 3/9] fix: restore VitePress base for proper asset routing --- docs/.vitepress/config.mts | 79 -------------------------------------- 1 file changed, 79 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index f602249..8b13789 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,80 +1 @@ -import { defineConfig } from 'vitepress' -export default defineConfig({ - title: 'Cora', - description: 'AI-Powered Code Review CLI — BYOK, zero config, runs in your terminal', - - 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/], -}) From 616a78db2d59dfa04357084fc7ef2c53533b4b13 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:33:51 +0700 Subject: [PATCH 4/9] fix: add VitePress base '/docs/cora/' for asset routing From b3ddf6cce13f5a9f96922f10ffd76565890aa8b6 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:37:14 +0700 Subject: [PATCH 5/9] fix: restore docs/.vitepress/config.mts from develop --- docs/.vitepress/config.mts | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) 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/], +}) From 28d7123cd01126a092e04c503f7698570c70ec05 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:40:21 +0700 Subject: [PATCH 6/9] =?UTF-8?q?fix:=20remove=20VitePress=20base=20?= =?UTF-8?q?=E2=80=94=20routing=20via=20Worker=20with=20=20inj?= =?UTF-8?q?ection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.mts | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 3f4037f..f602249 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,7 +3,6 @@ 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' }], From f4a3d10d74ccf8fdf7f38e61b6e7df25b6abafda Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 21:22:36 +0700 Subject: [PATCH 7/9] fix: add CF Pages _redirects --- docs/public/_redirects | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/public/_redirects diff --git a/docs/public/_redirects b/docs/public/_redirects new file mode 100644 index 0000000..788ad2f --- /dev/null +++ b/docs/public/_redirects @@ -0,0 +1 @@ +/docs/cora/* /:splat 200 From 4850c37612953f9a5069fff6274779ef449cbfc0 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 21:54:42 +0700 Subject: [PATCH 8/9] fix: add VitePress base '/docs/cora/' to cora config --- docs/.vitepress/config.mts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index f602249..c117c03 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -3,10 +3,11 @@ 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' }], + ['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' }], @@ -16,7 +17,7 @@ export default defineConfig({ ], themeConfig: { - logo: '/logo.svg', + logo: '/docs/cora/logo.svg', nav: [ { text: 'Codecora', link: 'https://codecora.dev' }, From 9aad82ad2211540069c7ceac8e3b70e88be02f2a Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 21:56:53 +0700 Subject: [PATCH 9/9] fix: remove base prefix from head assets (VitePress prepends base automatically) --- docs/.vitepress/config.mts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index c117c03..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,7 +17,7 @@ export default defineConfig({ ], themeConfig: { - logo: '/docs/cora/logo.svg', + logo: '/logo.svg', nav: [ { text: 'Codecora', link: 'https://codecora.dev' },