Commit graph

15 commits

Author SHA1 Message Date
Andy
0dd7888226 Fixed build script --highlight-style switch. 2026-09-16 20:01:03 -04:00
Edson Brandi
af8a1eb902
Merge pull request #28 from DtxdF/fix-eisvogel-install
scripts/build-book.sh: Fix broken URL for Eisvogel
2026-06-10 09:11:36 +01:00
Jesús Daniel Colmenares Oviedo
c56b07942f scripts/build-book.sh: Fix broken URL for Eisvogel
The URL on gist.github.com doesn't work, and the current instructions
seem to indicate that the template should be installed in two files
rather than just one.
2026-06-10 01:45:27 -04:00
Jesús Daniel Colmenares Oviedo
12037eb918 scripts/build-book.sh: Fix invalid README path 2026-06-09 20:50:47 -04:00
Edson Brandi
c288bfb19e Update README.md to include informations about the language zh_CN 2026-05-13 21:13:32 +00:00
Edson Brandi
2e72c740ef scripts: add zh_CN build support and language-aware dependency install
Wire Chinese (Simplified) into build-book.sh as a first-class target
alongside en_US, pt_BR, and es_ES, and teach setup_translation.sh how
to install the system packages that translated editions need.

build-book.sh:
- Add zh_CN to LANGUAGES_ALL and to every language helper
  (get_chapters_dir, get_appendices_dir, get_pandoc_lang,
  get_lang_display, normalize_lang) so it flows through the
  existing per-language build path with no special-casing.
- Wire Noto CJK fonts into the PDF build for zh_CN via the
  Eisvogel template's CJKmainfont/CJKsansfont/CJKmonofont
  variables (which auto-load xeCJK), plus a mainfont override
  so Latin text in the body matches the surrounding Chinese.
  The Latin defaults from metadata.yaml have no CJK glyphs,
  so this is required for the zh_CN PDF to render.
- Refresh help text, error messages, output-file listing,
  CONTENT SOURCES, EXAMPLES, and REQUIREMENTS to include
  zh_CN and the CJK font / texlive-lang-chinese dependencies.

setup_translation.sh:
- Add install_language_dependencies(), which maps a language
  code to the apt packages needed to build that edition:
  Noto CJK fonts + texlive-lang-chinese/cjk for zh*, the
  Japanese and Korean equivalents for ja/ko, and the
  matching texlive-lang-* packs for pt/es/fr/de/it/ru.
- Print the exact apt-get and fc-cache commands before
  running them so they can be reproduced manually, and
  fall back cleanly when apt-get is unavailable (non-Debian
  hosts) or sudo credentials are not cached.
- Add a --skip-deps flag for CI and unprivileged environments
  that just want the directory scaffolding without touching
  system packages.
- Update usage/help to document --skip-deps and the new
  zh_CN example.
2026-05-13 20:53:13 +00:00
Edson Brandi
a5ecee722d Fix pt_BR version of appendix d to allow the proper pdf generation 2026-04-24 23:52:07 +00:00
Edson Brandi
9613347698 rename BUILD-README.md to README.md 2026-04-24 23:03:29 +00:00
Edson Brandi
526a42cec4 feat(i18n): add initial AI-generated Spanish translation
Introduce a preliminary Spanish version of the book, translated
with AI assistance using the qwen3.6:35b-a3b-bf16 model.

Note: This content has not been fully human-reviewed and may
contain errors or inconsistencies. The English version remains
the primary source of truth.

Update: scripts/book-build.sh to generate pt_BR and es_ES files

fix(docs): correct typo in chapter 6 crashing PDF workflow
2026-04-24 23:02:00 +00:00
Edson Brandi
42a979a40e Update the files needed to generate the .pdf and .epub 2026-04-22 21:48:00 +00:00
Edson Brandi
1c7c50ef70 docs: add BUILD-README for FreeBSD Device Drivers book build system
Add comprehensive build documentation covering:
- Ubuntu 24.04 installation prerequisites
- Pandoc 3.0+ and LaTeX setup instructions
- Eisvogel template configuration
- Font installation (system, Windows, LaTeX, CJK)
- HTML5 and PDF generation guidelines
- Troubleshooting and known issues
- Code formatting examples for C, shell, and makefiles
2025-11-04 00:36:42 +00:00
Edson Brandi
915fb8df92 docs(book): add Chapter 6 draft (Anatomy of a FreeBSD Driver)
Adds the full draft of Chapter 6. This chapter has had only a single
review so far; readers should expect further edits and refinements
before the final book release.

Known issue:
- In the generated PDF, some code blocks appear before the section
  titles they belong to. This seems to be a Pandoc rendering quirk.
  I’ll investigate and fix later; for now, treat the Markdown as the
  source of truth.

No functional changes to earlier chapters.
2025-11-01 16:37:18 +00:00
Edson Brandi
72616ac949 Adjust to generate the .pdf and .epub drafts including the new Chapter 5 2025-10-13 23:21:30 +01:00
Edson Brandi
b497957d9a Add scripts to generate the PDF and epub book files 2025-08-31 03:36:05 +01:00
Edson Brandi
539ef021f8 feat: Initial upload of FreeBSD Device Drivers Book structure
This commit establishes the complete foundation for the FreeBSD Device Drivers Book project.

## 📚 Book Structure
- **7 Parts** covering the complete driver development journey
- **38 Chapters** with detailed metadata and placeholders
- **5 Appendices** for reference materials
- **Portuguese (Brazil) translation** structure ready

## 🗂️ Directory Organization
-  - Main book content with chapters and appendices
-  - Source code examples with comprehensive README
-  - Utility scripts for content management
-  - Multi-language support structure

## 🛠️ Key Features Added
- **Content Management Scripts**:
  -  - Sync content to website directory
  -  - Set up new language translations
- **Examples Documentation** - Complete README with build instructions
- **Translation Infrastructure** - Ready for multiple languages

## 📖 Content Overview
- **Part 1**: Foundations (FreeBSD, C, Kernel basics)
- **Part 2**: Basic Driver Development
- **Part 3**: Concurrency and Synchronization
- **Part 4**: Hardware and Platform Integration
- **Part 5**: Debugging, Tools, and Real-World Practices
- **Part 6**: Transport-Specific Drivers
- **Part 7**: Mastery Topics and Edge Cases
2025-08-04 09:14:49 -03:00