Skip to content

Commit b5190a1

Browse files
huonwalexcrichton
authored andcommitted
---
yaml --- r: 105898 b: refs/heads/auto c: e1e4816 h: refs/heads/master v: v3
1 parent 5527b17 commit b5190a1

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 0bfb61ed9d3c32989cea49c11e838229ddfb855e
16+
refs/heads/auto: e1e4816e16125e27d8bcb0723423b2a8ff21c91c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub fn render(w: &mut io::Writer, s: &str, print_toc: bool) -> fmt::Result {
209209
};
210210

211211
// Render the HTML
212-
let text = format!(r#"<h{lvl} id="{id}"><a
212+
let text = format!(r#"<h{lvl} id="{id}" class='section-link'><a
213213
href="\#{id}">{sec_len,plural,=0{}other{{sec} }}{}</a></h{lvl}>"#,
214214
s, lvl = level, id = id,
215215
sec_len = sec.len(), sec = sec);

branches/auto/src/librustdoc/html/render.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,9 @@ fn item_module(w: &mut Writer, cx: &Context,
10641064
clean::ForeignStaticItem(..) => ("ffi-statics", "Foreign Statics"),
10651065
clean::MacroItem(..) => ("macros", "Macros"),
10661066
};
1067-
try!(write!(w, "<h2 id='{id}'><a href=\"\\#{id}\">{name}</a></h2>\n<table>",
1067+
try!(write!(w,
1068+
"<h2 id='{id}' class='section-link'>\
1069+
<a href=\"\\#{id}\">{name}</a></h2>\n<table>",
10681070
id = short, name = name));
10691071
}
10701072

branches/auto/src/librustdoc/html/static/main.css

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,16 +317,11 @@ pre.rust .doccomment { color: #4D4D4C; }
317317
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
318318
pre.rust .lifetime { color: #B76514; }
319319

320-
h1:hover a:after,
321-
h2:hover a:after,
322-
h3:hover a:after,
323-
h4:hover a:after,
324-
h5:hover a:after,
325-
h6:hover a:after {
320+
h1.section-link:hover a:after,
321+
h2.section-link:hover a:after,
322+
h3.section-link:hover a:after,
323+
h4.section-link:hover a:after,
324+
h5.section-link:hover a:after,
325+
h6.section-link:hover a:after {
326326
content: ' § ';
327327
}
328-
329-
h1.fqn:hover a:after,
330-
:hover a.fnname:after {
331-
content: none;
332-
}

0 commit comments

Comments
 (0)