From e8f7869c6182713e7d6b0279819fc3c9a61d4f8e Mon Sep 17 00:00:00 2001 From: Ben PHL Date: Thu, 19 Sep 2024 13:11:39 +0200 Subject: [PATCH 1/2] Add some useful config options --- book.toml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/book.toml b/book.toml index f78bbc8..47784d1 100644 --- a/book.toml +++ b/book.toml @@ -1,9 +1,23 @@ [book] +title = "The Rust book for Drones" authors = ["The AeroRust community "] +description = "Build and deploy drone technologies using Rust" + language = "en" multilingual = false src = "drone-book" -title = "The Rust book for Drones" + +[rust] +# individual code blocks can append `,edition20XX` to use other editione.g.: +# ```rust,edition2015 +edition = "2018" + +[output.html] +smart-punctuation = true +git-repository-url = "https://github.com/AeroRust/mav/tree/main/drone-book" +git-repository-icon = "fa-github" +# site-url = ??? the documentation: The url where the book will be hosted. This is required to ensure navigation links and script/css imports in the 404 file work correctly, even when accessing urls in subdirectories. Defaults to /. If site-url is set, make sure to use document relative links for your assets, meaning they should not start with /. [build] -build-dir = "drone-book/book" \ No newline at end of file +build-dir = "drone-book/book" +create-missing = false From 2b1df3164a021c034aa5415f131bc2f0804874f7 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev <8925621+elpiel@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:52:57 +0300 Subject: [PATCH 2/2] chore: book - change default edition to 2021 --- book.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.toml b/book.toml index 47784d1..8ca925c 100644 --- a/book.toml +++ b/book.toml @@ -10,7 +10,7 @@ src = "drone-book" [rust] # individual code blocks can append `,edition20XX` to use other editione.g.: # ```rust,edition2015 -edition = "2018" +edition = "2021" [output.html] smart-punctuation = true