Skip to content

Commit

Permalink
Merge pull request #3944 from rust-lang/nostarch-preprocessors
Browse files Browse the repository at this point in the history
infra: correctly support preprocessors for nostarch
  • Loading branch information
chriskrycho committed May 27, 2024
2 parents 17533f9 + 60993ce commit 4fb5719
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mdbook-trpl-listing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Preprocessor for TrplListing {
}

fn supports_renderer(&self, renderer: &str) -> bool {
renderer == "html"
renderer == "html" || renderer == "markdown"
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mdbook-trpl-note/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Preprocessor for TrplNote {
}

fn supports_renderer(&self, renderer: &str) -> bool {
renderer == "html"
renderer == "html" || renderer == "markdown"
}
}

Expand Down
8 changes: 8 additions & 0 deletions tools/nostarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb5719

Please sign in to comment.