Skip to content

Commit ea5bcfb

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 2080046 commit ea5bcfb

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/saya
21+
diff-globs: |
22+
*.rs
23+
*.cairo
24+
*.toml
25+
*.md
26+
docs-patterns: |
27+
^bin/.*\.rs$
28+
^saya/.*\.rs$
29+
^contracts/.*\.cairo$
30+
canonical-desc: |
31+
Saya is documented at docs-repo/docs/pages/toolchain/saya/ — this is the single canonical location for saya (proving) docs.
32+
docs-structure-desc: |
33+
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.
34+
secrets: inherit

0 commit comments

Comments
 (0)