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

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/bootstrap/doc.rs

+2-8
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)