Skip to content

Commit e6145d5

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 2193fc5 commit e6145d5

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

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

0 commit comments

Comments
 (0)