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 }} diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 04ff799..3f4037f 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' }], ['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', nav: [ + { text: 'Codecora', link: 'https://codecora.dev' }, { 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: 'GitHub', link: 'https://github.com/codecoradev/cora-cli' }, ], sidebar: {