Skip to content

Commit 1efbb97

Browse files
committed
ci: add docs-sync workflow to open PRs against dojoengine/book
Ports the docs-sync workflow from cartridge-gg/controller to this repo. On each merged PR to main (and on manual workflow_dispatch), Claude analyzes the diff and, if user-facing behavior changed, opens an auto-merging PR to dojoengine/book with the suggested docs updates. Requires repository secrets: CREATE_PR_TOKEN, ANTHROPIC_API_KEY.
1 parent 9c5de3e commit 1efbb97

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: docs-sync
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches: [main]
7+
workflow_dispatch:
8+
inputs:
9+
commit_sha:
10+
description: "Commit SHA to analyze for documentation updates"
11+
required: true
12+
type: string
13+
14+
jobs:
15+
docs-sync:
16+
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
17+
uses: dojoengine/book/.github/workflows/docs-sync.yml@main
18+
with:
19+
target-docs-repo: dojoengine/book
20+
source-repo-slug: dojoengine/dojo.js
21+
diff-globs: |
22+
*.ts
23+
*.tsx
24+
*.md
25+
docs-patterns: |
26+
^packages/.*/src/.*\.(ts|tsx)$
27+
canonical-desc: |
28+
The JavaScript/TypeScript SDK is documented on a SINGLE PAGE: docs-repo/docs/pages/client/sdk/javascript.md. Do NOT create new pages or subdirectories under client/sdk/.
29+
docs-structure-desc: |
30+
The site uses Vocs. Content lives in `docs-repo/docs/pages/`. Navigation is in `docs-repo/routes.ts`. SDK docs at `docs-repo/docs/pages/client/sdk/` are single `.md` files (bevy.md, javascript.md, unity.md, unrealengine.md, godot.md, rust.md, telegram.md), not subdirectories — the sole exception is `c/` which is a subdir.
31+
secrets: inherit

0 commit comments

Comments
 (0)