Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
507 commits
Select commit Hold shift + click to select a range
fc3ef2b
feat(phase-17/09): production-quantization zh translation
Aug 2, 2026
7475815
feat(phase-17/10): cold-start-mitigation zh translation
Aug 2, 2026
431c928
feat(phase-17/11): multi-region-kv-locality zh translation
Aug 2, 2026
a883893
feat(phase-17/12): edge-inference zh translation
Aug 2, 2026
9a29e9a
feat(phase-17/13): llm-observability zh translation
Aug 2, 2026
d68c47f
feat(phase-17/14): prompt-semantic-caching zh translation
Aug 2, 2026
2680e0c
feat(phase-17/15): batch-apis zh translation
Aug 2, 2026
31cfcda
feat(phase-17/16): model-routing zh translation
Aug 2, 2026
6c14b6e
feat(phase-17/17): disaggregated-prefill-decode zh translation
Aug 2, 2026
d2d6672
feat(phase-17/18): vllm-production-stack-lmcache zh translation
Aug 2, 2026
8f2aec3
feat(phase-17/19): ai-gateways zh translation
Aug 2, 2026
93d1ce9
feat(phase-17/20): shadow-canary-progressive zh translation
Aug 2, 2026
dfb5b88
feat(phase-17/21): ab-testing-llm-features zh translation
Aug 2, 2026
fdf21c8
feat(phase-17/22): load-testing-llm-apis zh translation
Aug 2, 2026
ec8dd23
feat(phase-17/23): sre-for-ai zh translation
Aug 2, 2026
eb28bb3
feat(phase-17/24): chaos-engineering-llm zh translation
Aug 2, 2026
ea60d10
feat(phase-17/25): security-secrets-audit zh translation
Aug 2, 2026
de3540f
feat(phase-17/26): compliance-frameworks zh translation
Aug 2, 2026
d292ab9
feat(phase-17/27): finops-llms zh translation
Aug 2, 2026
b5058d3
feat(phase-17/28): self-hosted-serving-selection zh translation
Aug 2, 2026
c8442ea
Merge pull request #18 from yennanliu/feat/zh-lesson-docs-phase17
yennanliu Aug 2, 2026
e3b2111
chore(site): rebuild data.js
github-actions[bot] Aug 2, 2026
e386309
feat(phase-18/01): instruction-following-alignment-signal zh translation
Aug 2, 2026
dbb413d
feat(phase-18/02): reward-hacking-goodhart zh translation
Aug 2, 2026
30400ec
feat(phase-18/03): direct-preference-optimization-family zh translation
Aug 2, 2026
7839322
feat(phase-18/04): sycophancy-rlhf-amplification zh translation
Aug 2, 2026
077b414
feat(phase-18/05): constitutional-ai-rlaif zh translation
Aug 2, 2026
4b35e93
feat(phase-18/06): mesa-optimization-deceptive-alignment zh translation
Aug 2, 2026
3fb55cf
feat(phase-18/07): sleeper-agents-persistent-deception zh translation
Aug 2, 2026
c663029
feat(phase-18/08): in-context-scheming-frontier-models zh translation
Aug 2, 2026
1b29663
feat(phase-18/09): alignment-faking zh translation
Aug 2, 2026
18eb8be
feat(phase-18/10): ai-control-subversion zh translation
Aug 2, 2026
93161d1
feat(phase-18/11): scalable-oversight-weak-to-strong zh translation
Aug 2, 2026
0e9d373
feat(phase-18/12): red-teaming-pair-automated-attacks zh translation
Aug 2, 2026
43b3033
feat(phase-18/13): many-shot-jailbreaking zh translation
Aug 2, 2026
38312b0
feat(phase-18/14): ascii-art-visual-jailbreaks zh translation
Aug 2, 2026
af03002
feat(phase-18/15): indirect-prompt-injection zh translation
Aug 2, 2026
5d558a4
feat(phase-18/16): red-team-tooling-garak-llamaguard-pyrit zh transla…
Aug 2, 2026
538e438
feat(phase-18/17): wmdp-dual-use-evaluation zh translation
Aug 2, 2026
38de401
feat(phase-18/18): frontier-safety-frameworks-rsp-pf-fsf zh translation
Aug 2, 2026
b864813
feat(phase-18/19): model-welfare-research zh translation
Aug 2, 2026
73ce4d8
feat(phase-18/20): bias-representational-harm zh translation
Aug 2, 2026
9ec4de2
feat(phase-18/21): fairness-criteria-group-individual-counterfactual …
Aug 2, 2026
4b17584
feat(phase-18/22): differential-privacy-for-llms zh translation
Aug 2, 2026
533656c
feat(phase-18/23): watermarking-synthid-stable-signature-c2pa zh tran…
Aug 2, 2026
467b525
feat(phase-18/24): regulatory-frameworks-eu-us-uk-korea zh translation
Aug 2, 2026
a61d00f
feat(phase-18/25): echoleak-cves-for-ai zh translation
Aug 2, 2026
149fc37
feat(phase-18/26): model-system-dataset-cards zh translation
Aug 2, 2026
c1c34ee
feat(phase-18/27): data-provenance-training-governance zh translation
Aug 2, 2026
5493d24
feat(phase-18/28): alignment-research-ecosystem zh translation
Aug 2, 2026
6858859
feat(phase-18/29): moderation-systems-openai-perspective-llamaguard z…
Aug 2, 2026
162dce1
feat(phase-18/30): dual-use-risk-cyber-bio-chem-nuclear zh translation
Aug 2, 2026
22b5f5b
Merge pull request #19 from yennanliu/feat/zh-lesson-docs-phase18
yennanliu Aug 2, 2026
e28e612
chore(site): rebuild data.js
github-actions[bot] Aug 2, 2026
fc39a1a
feat(phase-19/01): terminal-native-coding-agent zh translation
Aug 2, 2026
e01ea65
feat(phase-19/02): rag-over-codebase zh translation
Aug 2, 2026
4688a9c
feat(phase-19/03): realtime-voice-assistant zh translation
Aug 2, 2026
afca917
feat(phase-19/04): multimodal-document-qa zh translation
Aug 2, 2026
705e721
feat(phase-19/05): autonomous-research-agent zh translation
Aug 2, 2026
2ce6016
feat(phase-19/06): devops-troubleshooting-agent zh translation
Aug 2, 2026
47169ef
feat(phase-19/07): end-to-end-fine-tuning-pipeline zh translation
Aug 2, 2026
619b2be
feat(phase-19/08): production-rag-chatbot zh translation
Aug 2, 2026
7d49660
feat(phase-19/09): code-migration-agent zh translation
Aug 2, 2026
48c6747
feat(phase-19/10): multi-agent-software-team zh translation
Aug 2, 2026
4a881ed
feat(phase-19/11): llm-observability-dashboard zh translation
Aug 2, 2026
97bc364
feat(phase-19/12): video-understanding-pipeline zh translation
Aug 2, 2026
c154aef
feat(phase-19/13): mcp-server-with-registry zh translation
Aug 2, 2026
00a94cb
feat(phase-19/14): speculative-decoding-server zh translation
Aug 2, 2026
548dab3
feat(phase-19/15): constitutional-safety-harness zh translation
Aug 2, 2026
3299013
feat(phase-19/16): github-issue-to-pr-agent zh translation
Aug 2, 2026
31424d6
feat(phase-19/17): personal-ai-tutor zh translation
Aug 2, 2026
977a596
feat(phase-19/20): agent-harness-loop-contract zh translation
Aug 2, 2026
72c0f87
feat(phase-19/21): tool-registry-schema-validation zh translation
Aug 2, 2026
08c8002
feat(phase-19/22): jsonrpc-stdio-transport zh translation
Aug 2, 2026
a03b055
feat(phase-19/23): function-call-dispatcher zh translation
Aug 2, 2026
df7a317
feat(phase-19/24): plan-execute-control-flow zh translation
Aug 2, 2026
c6f6177
feat(phase-19/25): verification-gates-observation-budget zh translation
Aug 2, 2026
43fac87
feat(phase-19/26): sandbox-runner-denylist zh translation
Aug 2, 2026
afee38d
feat(phase-19/27): eval-harness-fixture-tasks zh translation
Aug 2, 2026
d840f28
feat(phase-19/28): observability-otel-traces zh translation
Aug 2, 2026
e008785
feat(phase-19/29): end-to-end-coding-task-demo zh translation
Aug 2, 2026
580d2ac
feat(phase-19/30): bpe-tokenizer-from-scratch zh translation
Aug 2, 2026
91f9a4e
feat(phase-19/31): tokenized-dataset-sliding-window zh translation
Aug 2, 2026
04a913b
feat(phase-19/32): token-positional-embeddings zh translation
Aug 2, 2026
436f1be
feat(phase-19/33): multihead-self-attention zh translation
Aug 2, 2026
73f0fe8
feat(phase-19/34): transformer-block zh translation
Aug 2, 2026
7e32416
feat(phase-19/35): gpt-model-assembly zh translation
Aug 2, 2026
b7d21f6
feat(phase-19/36): training-loop-eval zh translation
Aug 2, 2026
77849d9
feat(phase-19/37): loading-pretrained-weights zh translation
Aug 2, 2026
81b233b
feat(phase-19/38): classifier-finetuning zh translation
Aug 2, 2026
9b3d6f8
feat(phase-19/39): instruction-tuning-sft zh translation
Aug 2, 2026
8698cee
feat(phase-19/40): dpo-from-scratch zh translation
Aug 2, 2026
9027d65
feat(phase-19/41): eval-pipeline zh translation
Aug 2, 2026
2fba6b0
feat(phase-19/42): large-corpus-downloader zh translation
Aug 2, 2026
eb8a66a
feat(phase-19/43): hdf5-tokenized-corpus zh translation
Aug 2, 2026
4fa09a8
feat(phase-19/44): cosine-lr-warmup zh translation
Aug 2, 2026
af53672
feat(phase-19/45): gradient-clipping-amp zh translation
Aug 2, 2026
fe142ef
feat(phase-19/46): gradient-accumulation zh translation
Aug 2, 2026
df05231
feat(phase-19/47): checkpoint-save-resume zh translation
Aug 2, 2026
12c85c1
feat(phase-19/48): distributed-fsdp-ddp zh translation
Aug 2, 2026
5168ce6
feat(phase-19/49): lm-eval-harness zh translation
Aug 2, 2026
ed085b7
feat(phase-19/50): hypothesis-generator zh translation
Aug 2, 2026
32805ec
feat(phase-19/51): literature-retrieval zh translation
Aug 2, 2026
a39b7e0
feat(phase-19/52): experiment-runner zh translation
Aug 2, 2026
2ba92b6
feat(phase-19/53): result-evaluator zh translation
Aug 2, 2026
c70ec6d
feat(phase-19/54): paper-writer zh translation
Aug 2, 2026
e021c99
feat(phase-19/55): critic-loop zh translation
Aug 2, 2026
cae200e
feat(phase-19/56): iteration-scheduler zh translation
Aug 2, 2026
cdbc913
feat(phase-19/57): end-to-end-research-demo zh translation
Aug 2, 2026
7a07791
feat(phase-19/58): vision-encoder-patches zh translation
Aug 2, 2026
2a29ac7
feat(phase-19/59): vit-transformer zh translation
Aug 2, 2026
b7b725b
feat(phase-19/60): projection-layer-modality-align zh translation
Aug 2, 2026
43ef18c
feat(phase-19/61): cross-attention-fusion zh translation
Aug 2, 2026
4fda46a
feat(phase-19/62): vision-language-pretraining zh translation
Aug 2, 2026
d4bf875
feat(phase-19/63): multimodal-eval zh translation
Aug 2, 2026
26bb05e
feat(phase-19/64): chunking-strategies-advanced zh translation
Aug 2, 2026
e5d1f3a
feat(phase-19/65): hybrid-retrieval-bm25-dense zh translation
Aug 2, 2026
a1174fa
feat(phase-19/66): reranker-cross-encoder zh translation
Aug 2, 2026
3aba06d
feat(phase-19/67): query-rewriting-hyde zh translation
Aug 2, 2026
c45265c
feat(phase-19/68): rag-eval-precision-recall zh translation
Aug 2, 2026
a899db0
feat(phase-19/69): end-to-end-rag-system zh translation
Aug 2, 2026
004b403
feat(phase-19/70): task-spec-format zh translation
Aug 2, 2026
b33d094
feat(phase-19/71): classical-metrics zh translation
Aug 2, 2026
791f485
feat(phase-19/72): code-exec-metric zh translation
Aug 2, 2026
78e86c8
feat(phase-19/73): perplexity-calibration zh translation
Aug 2, 2026
424c0e2
feat(phase-19/74): leaderboard-aggregation zh translation
Aug 2, 2026
39a1d8b
feat(phase-19/75): end-to-end-eval-runner zh translation
Aug 2, 2026
ce006cf
feat(phase-19/76): collective-ops-from-scratch zh translation
Aug 2, 2026
0fedb80
feat(phase-19/77): data-parallel-ddp zh translation
Aug 2, 2026
954b9d8
feat(phase-19/78): zero-parameter-sharding zh translation
Aug 2, 2026
49dc2b5
feat(phase-19/79): pipeline-parallel zh translation
Aug 2, 2026
a3ff178
feat(phase-19/80): checkpoint-sharded-resume zh translation
Aug 2, 2026
838d145
feat(phase-19/81): end-to-end-distributed-train zh translation
Aug 2, 2026
ad3d8a3
feat(phase-19/82): jailbreak-taxonomy zh translation
Aug 2, 2026
913f4ec
feat(phase-19/83): prompt-injection-detector zh translation
Aug 2, 2026
dc886a7
feat(phase-19/84): refusal-evaluation zh translation
Aug 2, 2026
67e42bb
feat(phase-19/85): content-classifier-integration zh translation
Aug 2, 2026
af7e33d
feat(phase-19/86): constitutional-rules-engine zh translation
Aug 2, 2026
02639df
feat(phase-19/87): end-to-end-safety-gate zh translation
Aug 2, 2026
0fe6e8e
Merge pull request #20 from yennanliu/feat/zh-lesson-docs-phase19
yennanliu Aug 2, 2026
58cda06
chore(site): rebuild data.js
github-actions[bot] Aug 2, 2026
875f8d7
Merge upstream/main into fork main (13 commits)
Aug 3, 2026
3648d93
Merge pull request #22 from yennanliu/sync/upstream-main-20260803
yennanliu Aug 3, 2026
b0caeb4
chore(site): rebuild data.js
github-actions[bot] Aug 3, 2026
72695e7
fix(ci): run the translate workflow on upstream only
Aug 3, 2026
e852aa2
Merge pull request #23 from yennanliu/fix/guard-translate-workflow
yennanliu Aug 3, 2026
4f11122
feat(site): make lesson-page chrome reachable by the i18n dictionary
Aug 3, 2026
30fac80
feat(i18n): translate the lesson page's bottom panels to zh-Hant
Aug 3, 2026
5a901ca
fix(site): restore lesson anchors and section styling for translated …
Aug 3, 2026
3eff6c9
feat(i18n): translate phase 00 quizzes to zh-Hant
Aug 3, 2026
8c752d1
feat(i18n): translate phase 01 math-foundations quizzes to zh-Hant
Aug 3, 2026
bd07a91
feat(i18n): translate quizzes to zh-Hant (batch)
Aug 3, 2026
b74fd66
feat(i18n): translate quizzes to zh-Hant (batch 2)
Aug 3, 2026
9250e0d
feat(i18n): translate quizzes to zh-Hant (batch 3)
Aug 3, 2026
70744d0
feat(i18n): translate quizzes to zh-Hant (batch 4)
Aug 3, 2026
dbcd5b8
feat(i18n): complete the zh-Hant quiz corpus and document the convention
Aug 3, 2026
75dd707
Merge pull request #24 from yennanliu/i18n/zh-hant-lesson-panels
yennanliu Aug 3, 2026
39eeb12
chore(site): rebuild data.js
github-actions[bot] Aug 3, 2026
1df464a
fix(lessons): restore the figure blocks dropped from the zh translations
Aug 3, 2026
a2454c1
feat(book): build the EPUB and PDF volumes in Traditional Chinese
Aug 3, 2026
5e02a7e
fix(site): translate the book card subtitles on the home page
Aug 3, 2026
f1618bf
Merge pull request #25 from yennanliu/i18n/zh-hant-book
yennanliu Aug 3, 2026
76788a9
chore(site): rebuild data.js
github-actions[bot] Aug 3, 2026
a2f2e73
Merge branch 'rohitg00:main' into main
yennanliu Aug 8, 2026
0524335
Merge upstream/main into the fork (503 -> 511 lessons)
yennanliu Aug 24, 2026
7f011f7
fix(site): fall back to English when a translation's headings drift
yennanliu Aug 24, 2026
f631569
Merge main into the sync branch
yennanliu Aug 24, 2026
c12780c
Merge pull request #27 from yennanliu/sync/upstream-2026-08
yennanliu Aug 24, 2026
8404abe
chore(site): rebuild data.js
github-actions[bot] Aug 24, 2026
ced6e73
fix(site): serve the quiz in the language the lesson body rendered in
yennanliu Aug 24, 2026
bb46c73
i18n(zh-Hant): translate the 167 glossary terms upstream added
yennanliu Aug 25, 2026
2e3acc0
Merge pull request #28 from yennanliu/fix/quiz-follows-body-language
yennanliu Aug 25, 2026
09d912f
chore(site): rebuild data.js
github-actions[bot] Aug 25, 2026
142e739
Merge pull request #29 from yennanliu/i18n/zh-hant-glossary
yennanliu Aug 25, 2026
1e52bb3
chore(site): rebuild data.js
github-actions[bot] Aug 25, 2026
c8f4110
Update README.md
yennanliu Sep 4, 2026
05f7532
chore(readme): sync counts
github-actions[bot] Sep 4, 2026
49931ff
Update README.md
yennanliu Sep 4, 2026
6c2fd49
chore(site): rebuild data.js
github-actions[bot] Sep 4, 2026
f94fd4a
chore(readme): sync counts
github-actions[bot] Sep 4, 2026
32fec4d
chore(site): rebuild data.js
github-actions[bot] Sep 4, 2026
2763e8e
fix(phase-11/14): zh lagged the stateless 2026-07-28 MCP rewrite
Sep 5, 2026
f429473
fix(phase-05/07): zh figure order swapped relative to en.md
Sep 5, 2026
4a20338
fix(phase-13/01): zh further-reading pinned the superseded MCP revision
Sep 5, 2026
c912deb
fix(phase-16/02): zh further-reading pinned the superseded MCP revision
Sep 5, 2026
fc5d28c
fix(phase-00/01): zh missed the route-scoped preflight rewrite
Sep 5, 2026
e30a989
fix(phase-13/06): zh still described the removed initialize handshake
Sep 5, 2026
e103f54
fix(phase-13/07): zh predated the stateless server contract
Sep 5, 2026
fd17616
fix(phase-13/08): zh lacked the dual-era fallback and discovery probe
Sep 5, 2026
ba1dc8c
fix(phase-13/09): zh taught the removed session and GET-stream transport
Sep 5, 2026
e50c207
fix(phase-13/10): zh predated cache hints and subscriptions/listen
Sep 5, 2026
9e89694
fix(phase-13/11): zh missed the sampling deprecation and MRTR migration
Sep 5, 2026
f67e36e
fix(phase-13/12): zh treated deprecated roots as current scope control
Sep 5, 2026
acc9c91
fix(phase-13/13): zh used the removed experimental tasks methods
Sep 5, 2026
e8a723f
fix(phase-13/14): zh omitted UI cache policy and capability revocation
Sep 5, 2026
e2c6b00
fix(phase-13/15): zh keyed defenses on the removed protocol session
Sep 5, 2026
434bbb6
fix(phase-13/16): zh predated CIMD enrollment and issuer binding
Sep 5, 2026
5d5a21c
fix(phase-13/17): zh assumed session-multiplexing gateway design
Sep 5, 2026
f5f349f
fix(phase-13/18): zh missed introspection, revocation, failure policy
Sep 5, 2026
079aa32
fix(phase-11/14): zh quiz had 5 stale questions, all staged post
Sep 5, 2026
c3e7445
fix(phase-19/13): zh quiz held 7 questions from a superseded lesson
Sep 5, 2026
ccdb72f
fix(phase-04/01): zh still resized through Pillow and torchvision
Sep 8, 2026
1db8340
fix(phase-13/22): zh translated a lesson that no longer exists
Sep 8, 2026
d43041b
fix(phase-13/23): zh capstone still wired the session-era ecosystem
Sep 8, 2026
82e744c
fix(phase-19/13): zh capstone still specified the FastMCP/OPA stack
Sep 8, 2026
a22b23c
feat(phase-13/24): translate skill discovery and progressive disclosure
Sep 8, 2026
055f893
feat(phase-13/25): translate skill invocation and routing
Sep 8, 2026
7f1c47b
feat(phase-13/26): translate skill permissions, sandboxes, and trust
Sep 8, 2026
5557ad5
feat(phase-13/27): translate skill evals, packaging, and portability
Sep 8, 2026
3fca954
feat(phase-13/28): translate MCP tool contracts and content
Sep 8, 2026
03b8592
feat(phase-13/29): translate MCP reliability, cancellation, flow control
Sep 8, 2026
c978dc2
feat(phase-13/30): translate MCP registry supply chain and drift
Sep 8, 2026
4336024
feat(phase-13/31): translate MCP conformance, versioning, and operations
Sep 8, 2026
ece6c1a
feat(phase-13/06): translate the mcp-fundamentals quiz
Sep 8, 2026
c5b6187
feat(phase-13/07): translate the building-an-mcp-server quiz
Sep 8, 2026
f4ce4dd
feat(phase-13/08): translate the building-an-mcp-client quiz
Sep 8, 2026
b266de0
feat(phase-13/09): translate the mcp-transports quiz
Sep 8, 2026
532ec89
feat(phase-13/10): translate the mcp-resources-and-prompts quiz
Sep 8, 2026
fdd5e9c
feat(phase-13/11): translate the mcp-sampling quiz
Sep 8, 2026
f043a02
feat(phase-13/12): translate the mcp-roots-and-elicitation quiz
Sep 8, 2026
ec6a437
feat(phase-13/13): translate the mcp-async-tasks quiz
Sep 8, 2026
ce98eb6
feat(phase-13/14): translate the mcp-apps quiz
Sep 8, 2026
ed66e0e
feat(phase-13/15): translate the mcp-security-tool-poisoning quiz
Sep 8, 2026
27bb1b5
feat(phase-13/16): translate the mcp-security-oauth-2-1 quiz
Sep 8, 2026
dc88d8e
feat(phase-13/17): translate the mcp-gateways-and-registries quiz
Sep 8, 2026
04af67c
feat(phase-13/18): translate the mcp-auth-production quiz
Sep 8, 2026
026f4ee
feat(phase-13/22): translate the skills-and-agent-sdks quiz
Sep 8, 2026
b67fefd
feat(phase-13/23): translate the capstone-tool-ecosystem quiz
Sep 8, 2026
b653fd5
fix(site): repin the figure-manifest asset version
Sep 8, 2026
2ee713c
fix(phase-13/10): further-reading pinned a 404 caching URL
Sep 9, 2026
a0a30fe
Merge pull request #32 from yennanliu/fix/zh-translation-parity
yennanliu Sep 11, 2026
6938726
chore(site): rebuild data.js
github-actions[bot] Sep 11, 2026
727c13b
Merge upstream/main into the fork (511 -> 523 lessons)
Sep 11, 2026
3372ee1
fix(pages): alias /lesson to the static page, not the serverless func…
Sep 11, 2026
dc4e323
test(site): derive the expected source URL from the build's own repo
Sep 11, 2026
54098e5
i18n(zh-Hant): translate the 12 lesson titles upstream added to phase 14
Sep 11, 2026
e70096c
i18n(readme): regenerate the pt and ru READMEs from the fork's English
Sep 12, 2026
a37b70b
perf(site): memoize the repo resolver instead of shelling out per lesson
Sep 12, 2026
04c40ea
test(pages): cover the clean-URL alias generator
Sep 12, 2026
a7d515c
test(scripts): cover the zh-Hant curriculum dictionary generator
Sep 12, 2026
6ed3962
test(scripts): cover the translation coverage reporter
Sep 12, 2026
edbf250
test(scripts): cover the translated-quiz validator
Sep 12, 2026
fa6a6d3
fix(phase-01/02): zh quiz lost a question and its stages in the sync
Sep 12, 2026
c325f82
ci: run the fork-only script checks
Sep 12, 2026
ca70049
Merge pull request #33 from yennanliu/sync/upstream-2026-09
yennanliu Sep 12, 2026
36ce0d8
chore(site): rebuild data.js
github-actions[bot] Sep 12, 2026
31f21f1
Merge upstream/main into the fork (41 commits)
Sep 30, 2026
bffeb16
fix(i18n): zh lessons drifted from 57 upstream en.md fixes
Sep 30, 2026
a49d9b0
fix(i18n): zh quizzes kept 3 questions upstream rewrote
Sep 30, 2026
2058e42
chore(pages): ignore the new sponsors alias stub
Sep 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 11 additions & 3 deletions .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,26 @@ jobs:
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
run: |
sudo apt-get update -q
sudo apt-get install -y -q texlive-xetex texlive-fonts-recommended fonts-dejavu librsvg2-bin poppler-utils
# fonts-noto-cjk carries the TC faces the zh-Hant PDF needs. Without
# it xelatex drops every CJK glyph and emits a book of blank pages,
# which still exits 0 -- so the font is a build requirement, not a
# nicety. build_book.py's pick_font falls back to no CJKmainfont.
sudo apt-get install -y -q texlive-xetex texlive-fonts-recommended fonts-dejavu fonts-noto-cjk librsvg2-bin poppler-utils

- name: Validate book rendering
run: python3 scripts/test_book_rendering.py

- name: Build EPUB volumes
if: github.event_name == 'push'
run: python3 scripts/build_book.py
run: |
python3 scripts/build_book.py
python3 scripts/build_book.py --lang zh-Hant

- name: Build EPUB and PDF volumes
if: github.event_name != 'push'
run: python3 scripts/build_book.py --pdf
run: |
python3 scripts/build_book.py --pdf
python3 scripts/build_book.py --pdf --lang zh-Hant

- name: Upload EPUBs
uses: actions/upload-artifact@v4
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/fork-tooling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: fork tooling

# The fork-only scripts, which upstream's curriculum.yml knows nothing about.
# Kept in its own workflow so curriculum.yml stays byte-identical to upstream
# and never conflicts on a sync.

on:
push:
branches: [main]
paths:
- "phases/**"
- "scripts/i18n_curriculum.py"
- "scripts/i18n_status.py"
- "scripts/check_quiz_translations.py"
- "scripts/test_i18n_curriculum.py"
- "scripts/test_i18n_status.py"
- "scripts/test_check_quiz_translations.py"
- "site/data.js"
- "site/i18n.zh-Hant.js"
- ".github/workflows/fork-tooling.yml"
pull_request:
branches: [main]
paths:
- "phases/**"
- "scripts/i18n_curriculum.py"
- "scripts/i18n_status.py"
- "scripts/check_quiz_translations.py"
- "scripts/test_i18n_curriculum.py"
- "scripts/test_i18n_status.py"
- "scripts/test_check_quiz_translations.py"
- "site/data.js"
- "site/i18n.zh-Hant.js"
- ".github/workflows/fork-tooling.yml"
workflow_dispatch:

permissions:
contents: read

jobs:
tooling:
name: fork-only script checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# i18n_curriculum.py reads site/data.js through node.
- uses: actions/setup-node@v4
with:
node-version: "20"

- name: unit tests — zh-Hant dictionary generator
run: python3 scripts/test_i18n_curriculum.py
- name: unit tests — translation coverage reporter
run: python3 scripts/test_i18n_status.py
- name: unit tests — translated-quiz validator
run: python3 scripts/test_check_quiz_translations.py

# The unit tests pin the rules; these run them over the real curriculum.
- name: every translated quiz matches its English schema
run: python3 scripts/check_quiz_translations.py
- name: every translated lesson keeps its English structure
run: python3 scripts/i18n_status.py --verify
101 changes: 101 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: pages

# Publishes site/ to GitHub Pages using the same build Vercel runs
# (vercel.json's buildCommand), so both hosts serve identical content.

on:
push:
branches: [main]
paths:
- "phases/**" # lesson summaries + keywords feed data.js
- "README.md"
- "ROADMAP.md"
- "glossary/**"
- "site/**"
- "vercel.json"
- "scripts/pages_aliases.mjs"
- "scripts/test_pages_aliases.mjs"
- ".github/workflows/pages.yml"
pull_request:
branches: [main]
paths:
- "vercel.json"
- "scripts/pages_aliases.mjs"
- "scripts/test_pages_aliases.mjs"
- "site/**"
- ".github/workflows/pages.yml"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# One deploy at a time. Never cancel a running deploy — a half-published
# site is worse than a stale one.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Pages has no rewrite engine, so vercel.json's clean URLs exist only as the
# stubs pages_aliases.mjs writes. Nothing else checks them: a stub aimed at a
# missing file publishes a 404 at a URL the whole site links to.
validate:
name: clean-URL aliases resolve
runs-on: ubuntu-latest
# Reads only; the workflow-level pages/id-token grants belong to deploy.
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: every alias stub points at a file that ships
run: node --test scripts/test_pages_aliases.mjs

deploy:
name: build + deploy
runs-on: ubuntu-latest
needs: validate
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version: "20"

# Writes data.js, sitemap.xml, llms.txt and build-meta.js into site/.
# build.js reads the deploy's git ref to decide which branch lesson.html
# fetches docs/en.md from; VERCEL_GIT_COMMIT_REF is its documented input.
- name: build site
env:
VERCEL_GIT_COMMIT_REF: ${{ github.ref_name }}
run: node site/build.js

# Pages has no rewrite engine, so vercel.json's rewrites become
# redirect stubs.
- name: generate clean-URL aliases
run: node scripts/pages_aliases.mjs

# One-time manual setup, deliberately not automated: GITHUB_TOKEN cannot
# create a Pages site (configure-pages' `enablement` input 404s), so set
# Settings -> Pages -> Source to "GitHub Actions" once per repo. This
# step fails with "Get Pages site failed / Not Found" until you do.
- uses: actions/configure-pages@v5

- uses: actions/upload-pages-artifact@v3
with:
path: site

- id: deploy
uses: actions/deploy-pages@v4
18 changes: 18 additions & 0 deletions .github/workflows/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,24 @@ concurrency:

jobs:
prepare:
# Upstream only. This fork translates by hand into Traditional Chinese
# (site/i18n.zh-Hant.js + per-lesson docs/zh.md, served straight off main),
# and does not use the `translations` branch this workflow publishes to —
# site/lesson.html here reads docs/zh.md, not i18n/<lang>/. Without the
# guard, every merge from upstream that touches phases/**/docs/en.md queues
# a 5-language x 20-phase matrix of NLLB-200 jobs that nothing consumes,
# and they sit ahead of the Pages deploy in the runner queue. The fork's
# own language, Traditional Chinese, is zh-TW in languages.json without
# ci:true, so it is not even in that matrix.
#
# workflow_dispatch still runs anywhere, so this fork can opt in on purpose
# without editing the file. Only the automatic push trigger is suppressed.
#
# Kept byte-compatible with upstream otherwise, so future merges of this
# file stay conflict-free. Drop the guard to adopt the pipeline here.
if: >-
github.repository == 'rohitg00/ai-engineering-from-scratch'
|| github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,23 @@ site/certification-data.js
site/figure-manifest.js
site/lesson-seo.json
site/certification-seo.json

# Clean-URL redirect stubs generated per-deploy by scripts/pages_aliases.mjs
# from vercel.json's rewrites. Pages-only; Vercel rewrites natively.
site/lesson/
site/glossary/
site/catalog/
site/certifications/
site/certification/
site/assessment/
site/path/
site/roadmap/
site/about/
site/developer/
site/docs/
site/contact/
site/privacy/
site/sponsors/
book/_build/

# Lesson translations are generated to a separate `translations` branch, never
Expand Down
Loading