Skip to content

Commit

Permalink
Rollup merge of rust-lang#53747 - GuillaumeGomez:rustdoc-fixes, r=Qui…
Browse files Browse the repository at this point in the history
…etMisdreavus

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
  • Loading branch information
kennytm authored Aug 28, 2018
2 parents dd2365c + 04b4c40 commit b993dd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
}
}

highlightSourceLines(null);
window.onhashchange = highlightSourceLines;

// Gets the human-readable string for the virtual-key code of the
Expand Down
5 changes: 5 additions & 0 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ h4 > code, h3 > code, .invisible > code {
margin-left: 33px;
margin-top: -13px;
}

.content .stability::before {
content: '˪';
font-size: 30px;
Expand All @@ -510,6 +511,10 @@ h4 > code, h3 > code, .invisible > code {
left: -13px;
}

#main > .stability {
margin-top: 0;
}

nav {
border-bottom: 1px solid;
padding-bottom: 10px;
Expand Down

0 comments on commit b993dd0

Please sign in to comment.