From c75ff98c6adc5d1b09709dd600e845e64c5bf00e Mon Sep 17 00:00:00 2001 From: Marco Otte-Witte Date: Tue, 12 Nov 2024 11:17:13 +0100 Subject: [PATCH 1/3] format --- book/src/02_basic_calculator/08_overflow.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/book/src/02_basic_calculator/08_overflow.md b/book/src/02_basic_calculator/08_overflow.md index feaa0e93f..864d0968c 100644 --- a/book/src/02_basic_calculator/08_overflow.md +++ b/book/src/02_basic_calculator/08_overflow.md @@ -80,8 +80,6 @@ The `bench` profile is the default profile used by `cargo bench`. The `bench` pr Use `dev` for iterative development and debugging, `release` for optimized production builds,\ `test` for correctness testing, and `bench` for performance benchmarking. - - > "Have you built your project in release mode?" is almost a meme in the Rust community.\ > It refers to developers who are not familiar with Rust and complain about its performance on > social media (e.g. Reddit, Twitter, etc.) before realizing they haven't built their project in From dab563a329791871d458492ac9ccf85a13ed28b5 Mon Sep 17 00:00:00 2001 From: Marco Otte-Witte Date: Tue, 12 Nov 2024 11:34:52 +0100 Subject: [PATCH 2/3] debug pandoc build --- book/book.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/book/book.toml b/book/book.toml index 325080837..f2621c433 100644 --- a/book/book.toml +++ b/book/book.toml @@ -33,6 +33,7 @@ highlight-style = "./custom.theme" # that supports fallback fonts, which we need for emojis. pdf-engine = "lualatex" metadata-file = "metadata.yml" +verbosity = "INFO" [output.pandoc.profile.pdf.variables] mainfont = "CoreSansA45.ttf" From 5edddf102ee2bff1220cd73b130c6a06fdb5f8fa Mon Sep 17 00:00:00 2001 From: Marco Otte-Witte Date: Tue, 12 Nov 2024 11:41:00 +0100 Subject: [PATCH 3/3] fix reference to fallback font --- book/book.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/book/book.toml b/book/book.toml index f2621c433..c7cf5c0b1 100644 --- a/book/book.toml +++ b/book/book.toml @@ -50,8 +50,8 @@ sansfontoptions = [ ] # You can get these fonts here: https://fonts.google.com/selection?query=noto+color+ monofont = "Noto Sans Mono" -mainfontfallback = ["Open Sans"] -sansfontfallback = ["Open Sans"] +mainfontfallback = ["Open Sans:style=Regular"] +sansfontfallback = ["Open Sans:style=Regular"] monofontfallback = [ "Noto Color Emoji:mode=harf", ] @@ -91,8 +91,8 @@ sansfontoptions = [ ] # You can get these fonts here: https://fonts.google.com/selection?query=noto+color+ monofont = "Noto Sans Mono" -mainfontfallback = ["Open Sans"] -sansfontfallback = ["Open Sans"] +mainfontfallback = ["Open Sans:style=Regular"] +sansfontfallback = ["Open Sans:style=Regular"] monofontfallback = [ "Noto Color Emoji:mode=harf", ] @@ -122,8 +122,8 @@ metadata-file = "metadata.yml" [output.pandoc.profile.html.variables] # You can get these fonts here: https://fonts.google.com/selection?query=noto+color+ monofont = "Noto Sans Mono" -mainfontfallback = ["Open Sans"] -sansfontfallback = ["Open Sans"] +mainfontfallback = ["Open Sans:style=Regular"] +sansfontfallback = ["Open Sans:style=Regular"] monofontfallback = [ "Noto Color Emoji:mode=harf", ]