Use relative paths for std links in rustc-docs
Signed-off-by: arferreira <arfs.antonio@gmail.com>
This commit is contained in:
parent
55bfca7d7d
commit
dcfc23abe4
1 changed files with 7 additions and 0 deletions
|
|
@ -953,6 +953,13 @@ impl Step for Rustc {
|
|||
cargo.rustdocflag("--extern-html-root-url");
|
||||
cargo.rustdocflag("ena=https://docs.rs/ena/latest/");
|
||||
|
||||
// Point std library crate links to local docs for offline usage.
|
||||
for krate in STD_PUBLIC_CRATES {
|
||||
cargo.rustdocflag("--extern-html-root-url");
|
||||
cargo.rustdocflag(&format!("{krate}=../"));
|
||||
}
|
||||
cargo.rustdocflag("--extern-html-root-takes-precedence");
|
||||
|
||||
let mut to_open = None;
|
||||
|
||||
let out_dir = builder.stage_out(build_compiler, Mode::Rustc).join(target).join("doc");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue