diff options
| author | bors <bors@rust-lang.org> | 2018-08-31 17:39:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-31 17:39:28 +0000 |
| commit | aaa170bebe31d03e2eea14e8cb06dc2e8891216b (patch) | |
| tree | 69401f21bce6a0136c59a6df85f20da6f29e700a /src/liballoc | |
| parent | 163adf2860d0a5d9eff0e401e314de9383ff56a1 (diff) | |
| parent | fcb54f674ab5f86b72ef97178a3df255f1ef4783 (diff) | |
| download | rust-aaa170bebe31d03e2eea14e8cb06dc2e8891216b.tar.gz rust-aaa170bebe31d03e2eea14e8cb06dc2e8891216b.zip | |
Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomez
rustdoc: add flag to control the html_root_url of dependencies The `--extern-html-root-url` flag in this PR allows one to override links to crates whose docs are not already available locally in the doc bundle. Docs.rs currently uses a version of this to make sure links to other crates go into that crate's docs.rs page. See the included test for intended use, but the idea is as follows: Calling rustdoc with `--extern-html-root-url crate=https://some-url.com` will cause rustdoc to override links that point to that crate to instead be replaced with a link rooted at `https://some-url.com/`. (e.g. for docs.rs this would be `https://docs.rs/crate/0.1.0` or the like.) Cheekily, rustup could use these options to redirect links to std/core/etc to instead point to locally-downloaded docs, if it so desired. Fixes https://github.com/rust-lang/rust/issues/19603
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions
