From cf19eb13866cf4a9322fd14cb4c0cf34c3706c19 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 29 Sep 2023 14:33:20 -0700 Subject: [PATCH 1/2] Fix `text-direction` in documentation. --- guide/src/format/configuration/general.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/format/configuration/general.md b/guide/src/format/configuration/general.md index 887cf0cd..fefd7159 100644 --- a/guide/src/format/configuration/general.md +++ b/guide/src/format/configuration/general.md @@ -47,7 +47,7 @@ This is general information about your book. key in the configuration file. - **language:** The main language of the book, which is used as a language attribute `` for example. This is also used to derive the direction of text (RTL, LTR) within the book. -- **text_direction**: The direction of text in the book: Left-to-right (LTR) or Right-to-left (RTL). Possible values: `ltr`, `rtl`. +- **text-direction**: The direction of text in the book: Left-to-right (LTR) or Right-to-left (RTL). Possible values: `ltr`, `rtl`. When not specified, the text direction is derived from the book's `language` attribute. **book.toml** From f25181f68dee2d72266f3ca1ff84753ec3d8d64f Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 29 Sep 2023 14:33:45 -0700 Subject: [PATCH 2/2] Update to 0.4.35 --- CHANGELOG.md | 15 +++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- guide/src/continuous-integration.md | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b44a27dc..71e298b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## mdBook 0.4.35 +[v0.4.34...v0.4.35](https://github.com/rust-lang/mdBook/compare/v0.4.34...v0.4.35) + +### Added +- Added the `book.text-direction` setting for explicit support for right-to-left languages. + [#1641](https://github.com/rust-lang/mdBook/pull/1641) +- Added `rel=prefetch` to the "next" links to potentially improve browser performance. + [#2168](https://github.com/rust-lang/mdBook/pull/2168) +- Added a `.warning` CSS class which is styled for displaying warning blocks. + [#2187](https://github.com/rust-lang/mdBook/pull/2187) + +### Changed +- Better support of the sidebar when JavaScript is disabled. + [#2175](https://github.com/rust-lang/mdBook/pull/2175) + ## mdBook 0.4.34 [v0.4.33...v0.4.34](https://github.com/rust-lang/mdBook/compare/v0.4.33...v0.4.34) diff --git a/Cargo.lock b/Cargo.lock index f8ccafc3..2346f5b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -955,7 +955,7 @@ dependencies = [ [[package]] name = "mdbook" -version = "0.4.34" +version = "0.4.35" dependencies = [ "ammonia", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 05fb077d..9f93cf08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdbook" -version = "0.4.34" +version = "0.4.35" authors = [ "Mathieu David ", "Michael-F-Bryan ", diff --git a/guide/src/continuous-integration.md b/guide/src/continuous-integration.md index 5a1a24a3..350cbc4d 100644 --- a/guide/src/continuous-integration.md +++ b/guide/src/continuous-integration.md @@ -21,7 +21,7 @@ A simple approach would be to use the popular `curl` CLI tool to download the ex ```sh mkdir bin -curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin +curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.35/mdbook-v0.4.35-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin bin/mdbook build ```