chore(book): make the build i18n-capable#34
Merged
Conversation
…ition) Foundation for the forthcoming Spanish edition. The build now reads its manifest from BOOK_CONFIG (default book.yaml), takes pdf_name/epub_name and localizable labels (chapter/appendix/contents) from the manifest, and selects callout labels (Note/Tip/Warning) by the manifest's language. English output is byte-identical (verified). A book-es.yaml + src-es/ will drive the ES build.
ancongui
added a commit
that referenced
this pull request
Jun 16, 2026
…mplos" (#36) A full Spanish translation of the book, built from the same source tree and sharing the openers + the new designed diagrams. English remains canonical; the ES edition tracks it. - book-es.yaml: the Spanish manifest (src_dir: src-es, language es, localized labels Capítulo/Apéndice/Contenido, output names *-es.{pdf,epub}, Spanish part/chapter/front titles). Build: `BOOK_CONFIG=book-es.yaml docs/book/build-book.sh`. - src-es/: all 34 files translated to professional es-ES (28 chapters/appendix/ glossary + 6 front-matter). Code blocks, inline SVG figures, and intra-book links preserved verbatim (only figcaptions + prose translated); the build localizes callout labels (Note→Nota, Tip→Consejo, Warning→Advertencia). Audited for fidelity: code byte-identical, figures intact, links consistent. - dist: firefly-rust-by-example-es.{pdf,epub} (PDF ~4.5 MB). - CI: the Release workflow now verifies + attaches BOTH editions on a tag, so every release ships the English and Spanish books. Built on the i18n-capable book pipeline (#34); inherits the guided-tutorial content (#33) and the designed diagram system (#35). Co-authored-by: Andrés Contreras Guillén <ancongui@Andress-MacBook-Pro-2.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Foundation for the Spanish edition. The book build now reads its manifest from
BOOK_CONFIG(defaultbook.yaml), takes output names + localizable labels (chapter/appendix/contents/callouts) from the manifest, and localizes by language. English output is byte-identical (verified). No content change.