21 Commits

Author SHA1 Message Date
Chris Krycho
34820ac2f4 Edition maintenance: scripting the updates for future work 2025-02-25 11:40:19 -07:00
Chris Krycho
dac5234891 Rust 1.85/2024 Edition: manual regeneration changes 2025-02-25 07:50:55 -07:00
Chris Krycho
573a6ca4ba Ch. 17: fix mdbook test output
This gets CI working again. The problem was basically a mix of a few
silly mistakes:

- Using `include` instead of `rustdoc_include` in several places.
- Having rewritten the listing numbers incorrectly.
2024-09-23 08:55:11 -06:00
Chris Krycho
cc5db97693 Ch. 17: rewrite 17.01 with a better example
Add `reqwest` and `scraper` dependencies to the `trpl` crate. Wrap them
in `trpl` re-exports which keep the API surface low.

Rewrite the whole first section to use `race` along with those `trpl`
re-exports to show a more “real” example of async code right form the
start, including actual concurrency, unlike the previous introduction.

Update 17.03 to account for having introduced `race` already, and update
listing numbers for rewritten 17.01.

The *inclues* for them were fixed already, but not these!
2024-09-20 16:46:37 -06:00
Chris Krycho
efd315a348 infra: remove mdBook preprocessors from workspace
Remove these from the workspace, because they will need to be used as
path dependencies in `rust-lang/rust`, as part of the build, because the
Rust build pipeline invokes mdBook programmatically rather than via
tools built directly, and we really don’t want to muck with publishing
these to crates.io at present. As a result, they cannot be part of this
workspace, because path dependencies do not get built as a crate within
the hosting workspace. Make sure they do not rely on any features other
than the core `mdbook` library.
2024-05-22 07:28:29 -06:00
Chris Krycho
59a02b9ed4 Merge mdbook-trpl-listing into the repository
This does not yet update all the workspace dependencies to be shared
between the listing and note preprocessors; it *only* integrates the
repo histories.
2024-05-14 07:39:16 -06:00
Chris Krycho
e07789118b Implement an mdBook preprocessor for <Listing>s
Instead of requiring a bunch of `<span>` wrangling, add a custom tag,
`<Listing>`, whose attributes get rewritten into the desired output
format, using `<figure>` and `<figcaption>` for improved semantic HTML.

Support both a default (nice and fancy) HTML output mode and a “simple”
mode to make it so we get the desired output format for the NoStarch
input files as well.
2024-05-14 07:32:06 -06:00
Chris Krycho
000b3d03e1 Create a repo for listing preprocessor 2024-05-13 17:08:58 -06:00
Chris Krycho
33fb62e92f Make mdbook a workspace root dependency 2024-04-29 16:18:34 -06:00
Chris Krycho
f48b281275 Convert to a workspace
This will let us pull in, and work directly on, things like the
`mdbook-trpl-notes` preprocessor.
2024-04-29 09:27:34 -06:00
David Tolnay
e81491c11e Update syn dependencies in Chapter 19 to 2.0 2024-04-15 11:24:35 -07:00
Bruce Adams
aea54c6d74 Update dependencies via cargo update 2022-06-07 10:17:49 -04:00
Carol (Nichols || Goulding)
8d3584f55f Upgrade to Rust 1.60 2022-06-03 21:39:11 -04:00
Carol (Nichols || Goulding)
1340fd5097 Update docopt usage since we bumped major versions 2020-01-29 11:16:58 -05:00
Carol (Nichols || Goulding)
b61f234c9a update all our crates 2020-01-27 09:00:50 -05:00
Carol (Nichols || Goulding)
8b0c2161f5 Script to generate release artifact of just the listings 2020-01-20 15:40:14 -05:00
Carol (Nichols || Goulding)
6290b930cd Commit autogenerated cargo content 2019-09-30 21:10:26 -04:00
Steve Klabnik
1fedfc4b96 move the book to the top level 2018-11-20 13:45:05 -05:00
steveklabnik
4f2dc56485 move most stuff into second-edition 2017-03-03 11:45:16 -05:00
Aleksei Voronov
cfabd86e21 Add a script that concatenates chapters into one file
Closes #183
2016-08-16 00:40:12 +03:00
Eric D. Reichert
b331986493 Added initial file path linter. 2016-08-07 09:00:16 -04:00