Skip to content

Commit 68a3ca0

Browse files
committed
Don't add rustdoc's CSS to other doc pages
This was originally added so those doc pages could use the same font files, but it turns out to be fragile. And those doc pages are just stubs that link to other pages, so they don't need fancy fonts.
1 parent 54f20bb commit 68a3ca0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/bootstrap/doc.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,9 @@ impl Step for Standalone {
383383
}
384384

385385
if filename == "not_found.md" {
386-
cmd.arg("--markdown-css")
387-
.arg(format!("https://doc.rust-lang.org/rustdoc{}.css", &builder.version))
388-
.arg("--markdown-css")
389-
.arg("https://doc.rust-lang.org/rust.css");
386+
cmd.arg("--markdown-css").arg("https://doc.rust-lang.org/rust.css");
390387
} else {
391-
cmd.arg("--markdown-css")
392-
.arg(format!("rustdoc{}.css", &builder.version))
393-
.arg("--markdown-css")
394-
.arg("rust.css");
388+
cmd.arg("--markdown-css").arg("rust.css");
395389
}
396390
builder.run(&mut cmd);
397391
}

0 commit comments

Comments
 (0)