Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Docs

on:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: deploy-docs
cancel-in-progress: false

jobs:
deploy:
name: Deploy Fumadocs to Cloudflare
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Deploy docs
run: bun run --cwd apps/docs deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ coverage/

packages/repterm/release

*.tgz
*.tgz

# Docs deployment artifacts
apps/docs/.open-next/
apps/docs/.vercel/
3 changes: 3 additions & 0 deletions apps/docs/open-next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineCloudflareConfig } from '@opennextjs/cloudflare';

export default defineCloudflareConfig();
8 changes: 6 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"postinstall": "fumadocs-mdx"
"postinstall": "fumadocs-mdx",
"preview": "opennextjs-cloudflare build && wrangler dev",
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy"
},
"dependencies": {
"@opennextjs/cloudflare": "^1.17.1",
"fumadocs-core": "^15.2.10",
"fumadocs-mdx": "^13.0.8",
"fumadocs-ui": "15.8.5",
Expand All @@ -25,6 +28,7 @@
"@types/react-dom": "^19.0.0",
"postcss": "^8.5.0",
"tailwindcss": "^4.1.0",
"typescript": "^5.3.0"
"typescript": "^5.3.0",
"wrangler": "^4.71.0"
}
}
15 changes: 15 additions & 0 deletions apps/docs/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "repterm-docs",
"account_id": "6d7b0ffbd980de250cbff2e25503230d",
"main": ".open-next/worker.js",
"assets": {
"binding": "ASSETS",
"directory": ".open-next/assets"
},
"compatibility_date": "2026-03-06",
"compatibility_flags": ["nodejs_compat"],
"observability": {
"enabled": true
}
}
Loading