14 Commits

Author SHA1 Message Date
Eric Huss
9c9104e8a8 Update to mdbook 0.5
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-051

This also changes it so that it is not necessary to install
`mbdook-trpl`. This should make it easier to work with the book and the
extension.
2025-12-10 11:33:49 -05:00
Tshepang Mbambo
37c01cbc56 use AND for search terms
The default is OR search, which is less popular (and therefore more surprising) than AND search
2025-11-18 10:33:41 -05:00
Chris Krycho
080147a27d Update to Rust 1.85 and 2024 Edition! 2025-02-24 13:55:20 -07:00
Chris Krycho
dc0613106f Redirects: get rid of the weird gap in Ch. 20 sections!
Bonus: fix internal *numbering* references in several places where I had
missed it when renumbering the links for the new Ch. 17.
2025-01-22 09:17:08 -07:00
Chris Krycho
27f2d71453 Add Chris Krycho as an author. 2024-10-10 12:32:26 -06:00
Chris Krycho
1324c75002 Add HTML-based redirects for previous chapter numbering
Unlike the redirects we have in place for the previous editions, this
simply performs an in-place redirect, using the built-in mechanism for
this in mdbook. As an alternative, we could hand-craft HTML pages to do
what the redirect pages for the first and second edition do: present a
page and let the user click through proactively.
2024-10-09 14:01:53 -06:00
Chris Krycho
995e932711 Use Rust 2021 Edition for mdBook
A number of examples *already* do not work correctly, and the inbound
async chapter requires Rust 2021.
2024-07-10 18:19:31 -06:00
Chris Krycho
17c244ac13 infra: Convert one listing to use <Listing>
- Add CSS for `figure.listing`; this now renders identically to how the
  existing listings render.
- Convert the first listing in the book to use `<Listing>` instead of
  a bunch of `<span>`s.
2024-05-14 08:25:02 -06:00
Chris Krycho
04841f73ba infra: configure trpl-listing preprocessor 2024-05-14 08:25:02 -06:00
Chris Krycho
593ec2af6a Do not apply semantic note handling to nostarch
Introduce a `book.toml` in the `nostarch` directory, which matches the
existing `book.toml` except for specifying the correct relative input
and output directories and disabling the `trpl-note` preprocessor. This
also lets us simplify the invocation in the `nostarch.sh` script a bit,
by providing the configuration directly in the file.
2024-04-29 16:18:34 -06:00
Chris Krycho
da7a20f2fc Emit semantic HTML instead of blockquotes for notes
Use the newly-introduced `mdbook-trpl-note` to render accessible and
semantic HTML for the notes/callouts in the book. This currently applies
to the nostarch version as well, so a follow-on change will update the
build process to undo that. Add CSS so the new note rendering matches
the existing rendering of blockquotes. (We might want to change that at
some point, but for now the goal is to maximizing continuity.)
2024-04-29 16:18:34 -06:00
David
db4b0dc6af fix: mdBook authors
ref: https:
//github.com/rust-lang/mdBook/blob/981b79b3b39d80b61da2a10622d6cf611a23686a/src/config.rs#L403-L420
2022-05-19 09:44:58 -04:00
Jonas Berlin
36419ce700 Add github repo link 2020-02-17 23:06:51 +02:00
Steve Klabnik
1fedfc4b96 move the book to the top level 2018-11-20 13:45:05 -05:00