mirror of
https://github.com/rust-lang/book.git
synced 2026-04-02 01:09:55 -04:00
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.
This commit is contained in:
@@ -98,7 +98,7 @@ impl Preprocessor for TrplListing {
|
||||
}
|
||||
|
||||
fn supports_renderer(&self, renderer: &str) -> bool {
|
||||
renderer == "html"
|
||||
renderer == "html" || renderer == "markdown"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ impl Preprocessor for TrplNote {
|
||||
}
|
||||
|
||||
fn supports_renderer(&self, renderer: &str) -> bool {
|
||||
renderer == "html"
|
||||
renderer == "html" || renderer == "markdown"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,14 @@ set -eu
|
||||
|
||||
cargo build --release
|
||||
|
||||
cd packages/mdbook-trpl-listing
|
||||
cargo install --locked --path .
|
||||
|
||||
cd ../mdbook-trpl-note
|
||||
cargo install --locked --path .
|
||||
|
||||
cd ../..
|
||||
|
||||
mkdir -p tmp
|
||||
rm -rf tmp/*.md
|
||||
rm -rf tmp/markdown
|
||||
|
||||
Reference in New Issue
Block a user