Skip to content

Commit d443416

Browse files
committed
Make every standalone doc use rustdoc.css
1 parent 0080825 commit d443416

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/bootstrap/doc.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,15 @@ impl Step for Standalone {
374374
}
375375

376376
if filename == "not_found.md" {
377-
cmd.arg("--markdown-css").arg("https://doc.rust-lang.org/rust.css");
377+
cmd.arg("--markdown-css")
378+
.arg(format!("https://doc.rust-lang.org/rustdoc{}.css", &builder.version))
379+
.arg("--markdown-css")
380+
.arg("https://doc.rust-lang.org/rust.css");
378381
} else {
379-
cmd.arg("--markdown-css").arg("rust.css");
382+
cmd.arg("--markdown-css")
383+
.arg(format!("rustdoc{}.css", &builder.version))
384+
.arg("--markdown-css")
385+
.arg("rust.css");
380386
}
381387
builder.run(&mut cmd);
382388
}

src/doc/rust.css

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ h5, h6 {
3838

3939
h1 {
4040
font-size: 28px;
41+
font-weight: 500;
4142
padding: .1em .4em;
4243
border-bottom: 2px solid #ddd;
4344
}
@@ -47,10 +48,12 @@ h1.title {
4748
h2 {
4849
font-size: 26px;
4950
padding: .2em .5em;
51+
border-bottom: 1px solid #ddd;
5052
}
5153
h3 {
5254
font-size: 24px;
5355
padding: .2em .7em;
56+
border-bottom: 1px solid #DDE8FC;
5457
}
5558
h4 {
5659
font-size: 22px;
@@ -105,7 +108,9 @@ footer {
105108
/* Links layout */
106109

107110
a {
111+
text-decoration: none;
108112
color: #428BCA;
113+
background: transparent;
109114
}
110115
a:hover, a:focus {
111116
color: #2A6496;

0 commit comments

Comments
 (0)