Commit Graph
9 Commits
Author SHA1 Message Date
Luong NGUYEN ad688e9989 docs: align model and effort lists with model-config (v2.1.322 sync) 2026-11-12 11:53:04 +00:00
Luong NGUYEN 62352e39d2 docs: add Fable models to the effort-level bullet in 09 2026-11-12 11:35:18 +00:00
Luong NGUYEN c951804fd8 docs: address review of v2.1.322 sync 2026-11-12 11:31:46 +00:00
Luong NGUYEN 88829d8cfb Merge branch 'main' into docs/sync-claude-code-2.1.322 2026-11-12 12:12:36 +01:00
Luong NGUYEN d80c5fe7ac docs: sync to Claude Code v2.1.322
Type: docs

Sync the tutorial, its translations and root docs to Claude Code
2.1.322 (range 2.1.317-2.1.322). P1 fixes (Fable 5.2, fast mode on
Fable 5.2, scheduled-task expiry/restore/jitter, subagent effort on
another model, Ask-each-time subagents, -p background time limit,
mods in auto/bypass/dontAsk) are mirrored to vi/ja/uk/ko/fa where the
text exists. P3 additions are English only. Six P2 docs-vs-changelog
conflicts are left for maintainer decision.

Validation: pre-commit run --all-files passes with
SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid
because the `language: node` mermaid hooks fail to install locally
(pre-commit 4.7.0: "must have package.json or additional_dependencies").
scripts/check_mermaid.py --strict was run directly instead: Pele
rendered all 416 Mermaid blocks.
2026-11-12 11:10:12 +00:00
Luong NGUYEN 6f64c1bdfc docs(advanced-features): tighten output-style timing wording and port it to fa and vi (#245)
Rewords the Output Styles timing note in `09-advanced-features` so it says only what the docs say, and ports it to the locales that still had the pre-#239 claim.

## What changed

- **en** (`09-advanced-features/README.md`): replaced "Claude Code sends the active style's instructions with every request" with "Claude Code delivers the new style's instructions as a message in the conversation". The docs don't give the old clause as a reason. The restart note now begins "In the terminal, …".
- **ko**: same meaning. Dropped the `…보내기 때문입니다` causal clause and added `터미널에서는 …`.
- **fa** (line 1538): replaced the outdated sentence, which said the style is read once at session start and needs `/clear` or a new session, with the corrected English meaning. It keeps the page's existing terms (`نسخهٔ`, `نشست`, `گفت‌وگو`, `ترمینال`, `دوباره راه‌اندازی`) and ZWNJ usage.
- **vi** (line 1538): the issue says vi has no Output Styles section, but it does. Line 1538 had the same outdated sentence as fa, so it gets the same fix. Without it, the acceptance criterion "No other locale has the sentence" would fail.
- **ja, zh, uk**: no Output Styles section and no such sentence (checked with `git grep`).

## Sources

https://code.claude.com/docs/en/output-styles.md:

> When you switch styles mid-session, Claude uses the new style starting with your next message. […] Before v2.1.251, the new style applied only after you ran `/clear` or started a new session.

> In the terminal, Claude Code reads style files when it starts, so if you create or edit one during a running session, restart Claude Code to pick up the change.

https://code.claude.com/docs/en/prompt-caching.md, "Changing output style":

> Claude Code delivers the new style's instructions as a message in the conversation, so that request still reads the system prompt and the earlier conversation from the cache.

## Checks

`pre-commit run --files` on the four changed files passes: markdown-lint, cross-references, link-check and markdown-rendering, plus the vi/ko/fa variants. The node-based mermaid hooks could not install here (`language: node must have package.json or additional_dependencies`), so they ran with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid`. No Mermaid diagrams are touched.

Closes #243
2026-11-12 12:01:45 +01:00
Luong NGUYEN 1a34d727ac docs(skills): retitle skillOverrides section as a visibility control (#242)
The `skillOverrides` section in `03-skills/README.md` already describes the setting as a per-skill visibility map, but its heading still read "Controlling Skill Override Behavior", which suggests it controls precedence. This PR retitles the heading to **Controlling Skill Visibility (`skillOverrides`)** to match the docs section "Override skill visibility from settings". The rest of #176 (the precedence order and the section body) was already fixed on `main` by the v2.1.245 sync (#177).

Changes:
- `03-skills/README.md`: new heading. The link on line 96 now points to `#controlling-skill-visibility-skilloverrides` (old: `#controlling-skill-override-behavior-skilloverrides`).
- `fa/03-skills/README.md`: heading `کنترل دیدپذیری مهارت`, link updated to `#کنترل-دیدپذیری-مهارت-skilloverrides`.
- `ko/03-skills/README.md`: heading `스킬 표시 여부 제어`, link updated to `#스킬-표시-여부-제어-skilloverrides`.

Anchors were computed with `heading_to_anchor()` in `scripts/check_cross_references.py`. No other links to the old anchors exist in the repo. The zh, ja, uk and vi pages have no `skillOverrides` heading. Their precedence lines (where present) already say enterprise > personal > project, so they need no change.

Source: https://code.claude.com/docs/en/skills.md

Gates: `scripts/check_cross_references.py` passed, and `pre-commit run --files <changed>` passed with `SKIP=mermaid,vietnamese-mermaid,japanese-mermaid,korean-mermaid,persian-mermaid`. The node mermaid hooks failed to install (`language: node must have package.json or additional_dependencies`). This diff changes no Mermaid diagrams.

#169 is not touched. It was found invalid: the lesson-quiz key (Q9 = B, Enterprise > Personal > Project) already matches the docs.

Closes #176
2026-11-12 11:52:56 +01:00
Luong NGUYEN c2f92c8fa7 feat(i18n): wire Persian (fa) into tooling and sync to v2.1.316 (#241)
Type: chore

## Summary

Follow-up to #208 (Persian translation). It wires `fa/` into the repo
tooling the same way #228 did for Korean, and syncs the translation from
v2.1.310 to v2.1.316.

## Changes

**Tooling** (`feat(i18n)`)
- `build_epub.py`: `--lang fa` builds `claude-howto-guide-fa.epub`.
- `build_website.py`: `--lang fa`; `fa` is in `EXCLUDE_DIRS`, so Persian
pages stay out of the English site.
- CI: the EPUB matrix in `test.yml` now includes `fa`. The
markdown-rendering docstring and test now list `fa`.
- Pre-commit: new `persian-markdown-lint`, `persian-cross-references`,
`persian-mermaid` and `persian-link-check` hooks. `persian-mermaid` is
added to the offline `SKIP=` lists in `.pre-commit-config.yaml`,
`CONTRIBUTING.md` and `CLAUDE.md`.
- `scripts/README.md`: usage text updated.
- Language switchers: `فارسی` added to `vi/`, `zh/`, `uk/`, `ja/` and
`ko/` READMEs and to the landing-page footer.

**Translation** (`docs(fa)`)
- Applies the English changes from #230 (v2.1.316) to the 15 affected
`fa/` files: 192 lines added, 104 removed.
- Moves the misplaced `دسترس‌پذیری (v2.1.310)` Monitor callout in
`fa/09-advanced-features/README.md` to the position it has in English.

## Verification

| Check | Result |
|---|---|
| `fa/` line counts, URLs and code-fence positions vs English `main` |
identical in all files |
| `pre-commit run --all-files`, including the new Persian hooks | pass |
| `pytest scripts/tests/` | 198 passed |
| ruff, mypy, bandit | clean |
| `build_epub.py --lang fa` + `check_epub_diagrams.py` | 61 diagrams, 0
placeholders |
| `build_website.py --lang fa` | builds; English site has no `fa/` pages
|

## Known limitations (not in this PR)

- The EPUB and website templates hard-code `lang="en"` and have no
`dir="rtl"`, so Persian pages render left-to-right. Fixing that means
passing the language into the HTML templates for every locale.
- `fa/.github/` has no `TESTING.md`, `SECURITY_REPORTING.md` or
`pull_request_template.md`; the other locales have all three.
2026-11-12 10:54:28 +01:00
Hassan BehtooeiandSolar Mini4 6d547a154e docs(i18n): add Persian (Farsi) translation (#208)
Type: docs

## Summary

This PR adds a complete Persian (فارسی) translation of the documentation
under `fa/`,
mirroring the English source tree one file for one, following the same
layout already
used by `ja/`, `zh/`, `uk/` and `vi/`.

It is documentation only — no code, scripts or build configuration are
changed.

## What's included

- All 95 Markdown documents under `fa/`, matching the English tree
file-for-file
- Translated GitHub templates under `fa/.github/` (issue templates, PR
template,
  security and testing docs)
- `fa/RELEASE_NOTES.md`, consistent with the other locales

## Translation policy

- **Translated:**&#8203; prose, headings, table headers and cells, list
items, blockquotes,
image alt text, Mermaid diagram labels, and `#` / `//` comments inside
code blocks
- **Kept verbatim:**&#8203; code, JSON/YAML keys and identifier values,
file paths, URLs,
shell commands, flags, environment variables, tool and model names,
version
  numbers, permission-rule syntax, and Markdown link targets
- **Anchors:**&#8203; in-page anchors are Persian, because GitHub
derives them from heading
text. They were generated from the translated headings and verified to
resolve.
- **Relative paths:**&#8203; shifted by one level (`../` → `../../`)
where the extra `fa/`
directory depth requires it, e.g. `LICENSE`, the language switcher, and
shared
  screenshots under `resources/`.

## Verification

- 95 files, line-for-line parity with the English source for every file
- 0 unclosed code fences
- 151 / 151 internal anchors resolve
- 284 / 285 relative links point to existing files — the single
exception is an
illustrative path inside prose that is also absent from the English
source
- No CJK, Hangul, Cyrillic, Thai or Devanagari characters outside code
fences,
except the language-switcher line, where each language name is
intentionally
  written in its own script

## Terminology

For consistency, recurring terms are translated as: agent → ایجنت,
subagent → زیرایجنت,
skill → مهارت, hook → هوک, plugin → پلاگین, slash command → دستور اسلش,
checkpoint → چک‌پوینت, session → نشست, prompt → پرامپت, context → زمینه,
sandbox → سندباکس, worktree → درخت کاری. Product and model names stay in
Latin script.

## Known limitation

`fa/03-skills/doc-generator/SKILL.md` is 3 lines shorter than the
English original.
That source file triggers a content-approval prompt in my environment
that I could
not clear, so I left it untouched rather than guessing at the missing
content.
I am happy to send a small follow-up PR for that one file.

## Request

Could you review and merge? I am glad to adjust terminology, revert any
file you would
rather keep in English, or split this into smaller commits if you prefer
a different
granularity.

---------

Co-authored-by: Solar Mini4 <solar@upstage.ai>
2026-11-12 10:24:00 +01:00