Skip to content

Commit c2ac774

Browse files
committed
add xtask doctest
Add a new `xtask`` command `doctest` that runs `mdbook test`. This ensures that `rustdoc`, when run from `mdbook`, will use the toolchain override. fixes #2251
1 parent 581920f commit c2ac774

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/xtask/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn main() -> Result<()> {
1818
cargo_test()?;
1919
eprintln!("all tests passed!");
2020
}
21+
Some("doctest") => mdbook_test()?,
2122
Some("linkcheck") => linkcheck(args)?,
2223
Some("style-check") => style_check()?,
2324
Some("-h" | "--help") => eprintln!("valid options: {OPTIONS}"),

0 commit comments

Comments
 (0)