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
Carol (Nichols || Goulding)
beefa247fa
Fix path replacement in miri example
2025-07-29 20:34:33 -04:00
Carol (Nichols || Goulding)
1547da752f
New style to handle in xsl
2025-07-14 17:23:38 -04:00
Carol (Nichols || Goulding)
3a38038187
Listing X-X is no longer in the content, no need to skip
2025-05-19 09:25:14 -05:00
Chris Krycho
34820ac2f4
Edition maintenance: scripting the updates for future work
2025-02-25 11:40:19 -07:00
Chris Krycho
080147a27d
Update to Rust 1.85 and 2024 Edition!
2025-02-24 13:55:20 -07:00
Chris Krycho
15e16cbb33
infra: improve the output of the doc-to-md script
...
- XSLT shenanigans: handle or ignore some new elements
- Get rid of non-breaking spaces when going to Markdown
2025-02-03 12:25:42 -07:00
Chris Krycho
ec5b76b8b0
tools: fix nostarch build reference to mdbook-trpl
...
Note that this is not urgent to land upstream because the script in
question is one only we run.
2024-12-05 12:27:12 -07:00
Chris Krycho
1882cfbb12
infra: remove extra leading > in simple preprocessor output
...
Preprocessors using `pulldown-cmark-to-cmark` do not yet perform round
trips 100% correctly, and insert leading spaces and an extra initial `>`
for block quotes, so strip those. Once that is fixed upstream, this will
become a no-op, and can be removed then.
2024-12-05 09:37:01 -07:00
Chris Krycho
9e2673a008
infra: share infrastructure for mdbook preprocessors
...
- Create an `mdbook_trpl` library package which hosts shared concerns
for the packages, e.g. error and config handling.
- Move `mdbook-trpl-note` and `mdbook-trpl-listing` into the new shared
package, with binaries at `src/bin/(note|listing)/main.rs` and the
existing libraries at `src/note/mod.rs` and `src/listing/mod.rs` with
their associated tests.
- Extract their actual shared pieces into the crate root.
- Update `tools/nostarch.sh` to build all the bins in `mdbook_trpl` at
one time.
At the moment, this doesn't do a lot except trim down the number of
packages in the repository, but it sets things up nicely to support more
preprocessors (which I am going to add shortly).
2024-12-05 09:37:01 -07:00
Chris Krycho
effecb884e
infra: rewrite rustup toolchain paths in update-rustc.sh
...
As with project paths, we do not want these to have the paths from the
user who runs `update-rustc.sh`, but some totally generic path.
2024-11-05 15:53:09 -07:00
Chris Krycho
b9241f6b14
infra: support listing deps in update-rustc.sh
2024-11-04 12:48:08 -07:00
Chris Krycho
df78a37109
infra: include ghp-import and git push in generate-preview script
2024-07-31 07:16:56 -06:00
Chris Krycho
de6e35c52f
infra: add robots.txt for GH Pages previews
...
Block *everything*. We do not want any of this to be indexed, because we
*only* use it for previews, and do not want its content to be cached or
(especially!) surfaced to readers, since it may have a variety of issues
ranging from pedagogical missteps to outright errors!
2024-07-31 07:05:42 -06:00
Chris Krycho
60993ce66f
infra: correctly support preprocessors for nostarch
...
- Update the `tools/nostarch` script to `cargo install` each of the
preprocessors so they are always available to run and do not require
any manual intervention.
- Add support for `"markdown"` renderer in the preprocessors.
2024-05-27 15:39:36 -06:00
Carol (Nichols || Goulding)
ea8cd41a84
Switch to double quotes as shellcheck suggests
2024-05-22 14:52:49 -04:00
Carol (Nichols || Goulding)
1755cce5cf
Update regex to account for new cargo output format
2024-05-22 14:52:49 -04:00
Carol (Nichols || Goulding)
82e1e05aef
Suppress new cargo clean output when regenerating output
2024-05-22 14:52:49 -04: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
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
Yuri Astrakhan
c5211edeec
Apply clippy::uninlined_format_args fix
2024-04-19 15:20:22 -04:00
Yuri Astrakhan
f55ac5d8fa
Inline all format arguments
...
The inlined format arguments are a bit easier to understand,
especially for those familiar with the other languages (python, js).
2023-10-30 11:54:36 -04:00
Carol (Nichols || Goulding)
4ad07d9e17
Fix a problem with literal style ending
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
e593d2a53b
Fix ListNumber0, newlines after lists
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
c2bcf788c0
Don't match nodes without anything
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
af23aac799
Handle listing numbers in appendices too
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
1497658929
Number Table captions too
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
77bfbfe16f
Handle figures too
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
6e47fbf18f
Handle listing numbers
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
ef3535544a
Fix ListBullet0
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
6e4c1fdd00
Handle ending of BoxCode better
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
3bb78e3834
Make RunInHead consistent-ish
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
10a359522a
Fix extra newline before boxes
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
82c3400344
Fix Box RunIn Head/Para
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
324d8ba8e2
Fix newline after RunInHead/Para
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
739c283cf2
Fix QuotePara
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
03cd731b27
Fix ListPlain
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
4d2924a3cc
Fix BoxCode
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
a4ff67d919
Fix GraphicSlug and CaptionLine
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
5761b4b39a
Fix boxes a bit
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
ecbe0c4ebc
Add a shellcheck ignore
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
568562e065
Handle BoxListBullet
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
d1d0af3c08
Handle superscript
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
b65ef142be
Regenerate ch3 from xml and fix tables
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
4a96535873
Fix italics and whitespace interactions
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
b2338dbc55
Fix italic preceding/following
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
e688ccd4bb
Fix preceding/following xpaths again
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
024ce6824a
Fix italics
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
7fce2247cf
Fix code blocks
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
434b32049f
Fix more last bullets in lists
2022-10-20 16:39:55 -04:00