Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/book/book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ src_dir: "src"
front:
- {id: title, file: 00-front/00-title.md, nav: false}
- {id: copyright, file: 00-front/00-copyright.md, nav: false}
- {id: dedication, file: 00-front/00-dedication.md, nav: false}
- {id: preface, file: 00-front/00-preface.md, title: "Preface"}
- {id: conventions, file: 00-front/00-conventions.md, title: "Conventions"}
- {id: primer, file: 00-front/00-rust-primer.md, title: "A Rust Primer"}
Expand Down
3 changes: 2 additions & 1 deletion docs/book/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def _inline_svg(path: Path) -> str:

def _front_class(fid: str) -> str:
return {"title": "frontmatter title-page",
"copyright": "frontmatter copyright-page"}.get(fid, "frontmatter")
"copyright": "frontmatter copyright-page",
"dedication": "frontmatter dedication-page"}.get(fid, "frontmatter")


def _items_from_manifest(cfg: dict) -> list[dict]:
Expand Down
Binary file modified docs/book/dist/firefly-rust-by-example.epub
Binary file not shown.
Binary file modified docs/book/dist/firefly-rust-by-example.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions docs/book/src/00-front/00-dedication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
For **Ángel Luis Mula**, our CIO —

who asked, in every standup, every roadmap review, and at least one elevator,
"so… when do we do the Rust version?" — until, finally, we did.

From the team that keeps the systems running: thank you for a stack with no
garbage collector to babysit, no 3 a.m. page for a runaway heap, and a cloud
bill that no longer reads like a ransom note.

The borrow checker is the only thing in this building stricter than you.

**May your pagers stay silent and your p99s stay flat.**
7 changes: 7 additions & 0 deletions docs/book/theme/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ body{ background:#fff; }
display:flex; flex-direction:column; justify-content:flex-end;
min-height:7.3in; font-size:.82rem; color:var(--ink-soft); string-set:runhead "";
}
/* a short dedication, vertically centred and italic, no running head */
.frontmatter.dedication-page{
display:flex; flex-direction:column; justify-content:center;
min-height:7.3in; text-align:center; font-style:italic;
color:var(--ink-soft); string-set:runhead "";
}
.frontmatter.dedication-page p{ margin:.5rem auto; max-width:25rem; line-height:1.5; }

/* ============ chapters ============ */
.chapter{ break-before:page; padding-bottom:0; }
Expand Down
Loading