Skip to content

Commit fcbaf96

Browse files
committed
feat: migrate to fumadocs
1 parent 9db50ec commit fcbaf96

File tree

160 files changed

+18093
-6673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+18093
-6673
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
name: GitHub Actions Vercel Production Deployment
2-
env:
3-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
1+
name: Deploy to Cloudflare Workers
2+
53
on:
64
push:
75
branches:
86
- main
97
workflow_dispatch:
10-
8+
119
jobs:
12-
CI:
10+
deploy:
1311
runs-on: ubuntu-latest
1412
steps:
1513
- uses: actions/checkout@v4
14+
1615
- uses: pnpm/action-setup@v3
1716
with:
1817
version: 9
19-
- name: Install Vercel CLI
20-
run: pnpm install --global vercel@canary
21-
- name: Pull Vercel Environment Information
22-
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
23-
- name: Build Project Artifacts
24-
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
25-
- name: Deploy Project Artifacts to Vercel
26-
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install --frozen-lockfile
26+
27+
- name: Build (Next.js + opennext)
28+
run: pnpm build:worker
29+
30+
- name: Deploy to Cloudflare Workers
31+
run: pnpm cf:deploy
32+
env:
33+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync Extensions
2+
3+
on:
4+
schedule:
5+
- cron: "0 * * * *" # every hour
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v3
15+
with:
16+
version: 9
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
cache: pnpm
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Sync extensions
27+
env:
28+
WORKER_URL: https://gopeed.com
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: pnpm sync:extensions

.gitignore

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
1+
# deps
42
/node_modules
5-
/.pnp
6-
.pnp.js
73

8-
# testing
9-
/coverage
4+
# generated content
5+
.source
6+
/lib/openapi/swagger.json
107

11-
# next.js
8+
# test & build
9+
/coverage
1210
/.next/
11+
/.open-next/
12+
/.wrangler/
1313
/out/
14-
15-
# production
1614
/build
15+
*.tsbuildinfo
1716

1817
# misc
1918
.DS_Store
2019
*.pem
21-
22-
# debug
20+
/.pnp
21+
.pnp.js
2322
npm-debug.log*
2423
yarn-debug.log*
2524
yarn-error.log*
26-
.pnpm-debug.log*
2725

28-
# local env files
26+
# others
2927
.env*.local
30-
31-
# vercel
3228
.vercel
33-
34-
/public/robots.txt
35-
/public/sitemap*.xml
29+
next-env.d.ts

.idea/.gitignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/MarsCodeWorkspaceAppSettings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/website.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)