Skip to content

Commit b993dd0

Browse files
authored
Rollup merge of rust-lang#53747 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavus
Rustdoc fixes Fixes rustdoc not scrolling to given lines and invalid unstable display: <img width="1440" alt="screen shot 2018-08-27 at 23 28 47" src="https://user-images.githubusercontent.com/3050060/44687252-06535e80-aa51-11e8-8512-d7d34d1cb963.png"> r? @QuietMisdreavus
2 parents dd2365c + 04b4c40 commit b993dd0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/librustdoc/html/static/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
242242
}
243243
}
244244

245+
highlightSourceLines(null);
245246
window.onhashchange = highlightSourceLines;
246247

247248
// Gets the human-readable string for the virtual-key code of the

src/librustdoc/html/static/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ h4 > code, h3 > code, .invisible > code {
502502
margin-left: 33px;
503503
margin-top: -13px;
504504
}
505+
505506
.content .stability::before {
506507
content: '˪';
507508
font-size: 30px;
@@ -510,6 +511,10 @@ h4 > code, h3 > code, .invisible > code {
510511
left: -13px;
511512
}
512513

514+
#main > .stability {
515+
margin-top: 0;
516+
}
517+
513518
nav {
514519
border-bottom: 1px solid;
515520
padding-bottom: 10px;

0 commit comments

Comments
 (0)