[rustdoc] Add new --book-location
option to add a link to associated guide and generate it if local by GuillaumeGomez · Pull Request #139769 · rust-lang/rust (original) (raw)
This option adds the possibility to provide a path or a URL to the associated guide of this crate in the crate-level doc page. If the provided argument is a path, then the guide is generated using the mdbook
crate.
It looks like this:
You can give it a try here.
It'll need an FCP before getting merged.
Also I need to add tests when the argument is a path but I'll wait for the feature form to be final before doing it to prevent doing it more than once. 😄
cc @notriddle
r? @camelid