Skip to content

Commit bd9edbf

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 bd9edbf

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/docs-sync.yml

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

0 commit comments

Comments
 (0)