Skip to content

Commit 4a1a1f4

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 targeted docs updates. Canonical docs location: docs/pages/toolchain/katana/ Requires repository secrets: CREATE_PR_TOKEN, ANTHROPIC_API_KEY.
1 parent c1cf019 commit 4a1a1f4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

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

0 commit comments

Comments
 (0)