Skip to content

Commit 4b4f7c0

Browse files
docs: add dedicated docs website
1 parent 3e08f3b commit 4b4f7c0

38 files changed

+4403
-545
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v6
21+
with:
22+
node-version: 24
23+
- name: Get pnpm store directory
24+
id: pnpm-cache
25+
run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
26+
- uses: actions/cache@v4
27+
with:
28+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
29+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
30+
restore-keys: |
31+
${{ runner.os }}-pnpm-store-
32+
33+
- run: pnpm install --frozen-lockfile
34+
- run: pnpm run docs:build
35+
36+
- name: Deploy to Cloudflare
37+
run: cd docs && npx wrangler deploy
38+
env:
39+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ dist
22
node_modules
33
.DS_Store
44
.env
5+
docs/.vitepress/dist
6+
docs/.vitepress/cache
57
packages/toon/test/fixtures/*.json
68
packages/toon/test/fixtures/*.toon

0 commit comments

Comments
 (0)