Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .agents/skills/translate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Check these three things. If any fails, stop and ask.
- `i18n/` is not in `.gitignore`.
- `glossary.yml` and `translation-rules.yml` are valid YAML.

Translate the English page as it is on disk after any fixes and after
Prettier has run, so the hash you record matches what you translated.
Translate the English page exactly as it is on disk, so the hash you record
matches what you translated. Do not reformat it; English changes belong in
their own PR. After writing the translation, run
`yarn prettier --write <files>` on only the files you changed under `i18n/`.

## Front matter

Expand Down
5 changes: 3 additions & 2 deletions .agents/skills/update-content/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ Change docs pages and open a PR.
## Finish

Stop when you are done or reach 20 changed files. If work is left, list it in
the PR for the next run. Run Prettier on the files you changed, then build the
site as CI does, which fails on broken links:
the PR for the next run. Format the files you changed with
`yarn prettier --write <files>`, then build the site as CI does, which fails on
broken links:

```bash
yarn generate-library
Expand Down
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Prettier also reads .gitignore, so only list what is committed but must not be reformatted.
.yarn/
yarn.lock
adaptors/library/
generate-library/master.temp.json
versioned_docs/
versioned_sidebars/
static/
# Human-maintained; a reformat commit would mark every machine translation stale.
glossary.yml
translation-rules.yml
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@types/react-router-dom": "^5.1.7",
"chokidar": "^3.6.0",
"glob": "^11.1.0",
"prettier": "3.9.9",
"typescript": "~5.2.2"
},
"resolutions": {
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5168,6 +5168,7 @@ __metadata:
form-data: 4.0.6
glob: ^11.1.0
mermaid: 11.16.1
prettier: 3.9.9
prism-react-renderer: ^2.1.0
raw-loader: ^4.0.2
react: ^18.2.0
Expand Down Expand Up @@ -14056,6 +14057,15 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:3.9.9":
version: 3.9.9
resolution: "prettier@npm:3.9.9"
bin:
prettier: bin/prettier.cjs
checksum: fbd41978e758c07ce493728c73c9011400446281aca707024e58f7b6ea5ad1dd2f12f8cc51ff76ceb7c7749947db876f6074030a5ec333d8e4084c29455ea948
languageName: node
linkType: hard

"pretty-error@npm:^4.0.0":
version: 4.0.0
resolution: "pretty-error@npm:4.0.0"
Expand Down
Loading