add xtask doctest#2255
Conversation
Add a new `xtask`` command `doctest` that runs `mdbook test`. This ensures that `rustdoc`, when run from `mdbook`, will use the toolchain override. fixes rust-lang#2251
There was a problem hiding this comment.
If we add this, then I think we should also update the documentation to guide users towards the preferred command/workflow. So for example:
reference/dev-guide/src/examples.md
Line 32 in e6b3010
reference/dev-guide/src/tests.md
Line 6 in e6b3010
reference/dev-guide/src/tests.md
Lines 22 to 28 in e6b3010
|
Thanks for the review! Oops, I had some edits in progress before I saw your comments. Will incorporate them soon. |
Rename the xtask command to `mdbook-test`. Adjust documentation accordingly. Adjust `OPTIONS`` in xtask.
|
I think the latest revision addresses your comments. Please let me know what you think! |
|
@rustbot label Meta "Authoring guide" |
|
Error: Label Meta can only be set by Rust team members Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
|
@rustbot label "Authoring guide" |
|
Error: Label Authoring guide can only be set by Rust team members Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip. |
Add a new
xtask`` commanddoctestthat runsmdbook test. This ensures thatrustdoc, when run frommdbook`, will use the toolchain override.fixes #2251