Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up[src] view shows lines first and then the code. #264
Comments
This comment has been minimized.
This comment has been minimized.
|
This is an upstream rustdoc bug that should have been fixed by rust-lang/rust#55493, so i'm surprised it showed up on the nightly that rendered these docs ( |
This comment has been minimized.
This comment has been minimized.
|
It comes from my add of line numbers and it has been fixed already in rust-lang/rust#55858. |
pietroalbini
referenced this issue
Nov 26, 2018
Closed
Rustdoc source code is not displayed next to line numbers #56230
This comment has been minimized.
This comment has been minimized.
hellow554
commented
Nov 26, 2018
|
Is it possible that the documentation will be rebuilt that has been generated in that date region? |
pietroalbini
referenced this issue
Nov 30, 2018
Closed
fixed-0.1.4 source view has line numbers and code separated #268
This comment has been minimized.
This comment has been minimized.
|
It's not fixed, though. I just updated the nightly used to build crates to |
This comment has been minimized.
This comment has been minimized.
|
It is fixed as far as I can tell. For instance: https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#294-296 (but maybe it requires to update to a more recent rustdoc version?) |
This comment has been minimized.
This comment has been minimized.
|
@GuillaumeGomez It's still broken on docs.rs though. I rebuilt the crate mentioned in the issue description with the rustdoc i just mentioned, and it still shows the problem - click the link and see for yourself. |
This comment has been minimized.
This comment has been minimized.
|
A few things are different in the style apparently:
|
This comment has been minimized.
This comment has been minimized.
|
I don't see that difference? I just compared with https://docs.rs/spirv-reflect/0.1.2/rustdoc-20181129-1.32.0-nightly-3e90a12a8.css with https://github.com/rust-lang/rust/blob/d09466ceb1374bd0ff1c490bfd50133b8ca67558/src/librustdoc/html/static/rustdoc.css (after trying to un-minimize the former) and i don't see any significant differences between them. |
This comment has been minimized.
This comment has been minimized.
|
Looking further, it seems like the problem is in that CSS selector, |
This comment has been minimized.
This comment has been minimized.
|
I looked at |
This comment has been minimized.
This comment has been minimized.
|
You mean these rules that are also in nightly? Is there a PR on rust-lang/rust that fixes that? |
This comment has been minimized.
This comment has been minimized.
|
This PR added those rules. But it was supposed to fix this very issue. How weird... |
This comment has been minimized.
This comment has been minimized.
|
We talked about it on Discord:
I'm planning to work on the latter later today, but if i don't get to it then that's at least what i think the solution should be. |
AlexEne commentedNov 20, 2018
•
edited
Clicking on the [src] link for any repo shows you first the line numbers and then the source code.
For example here: https://docs.rs/spirv-reflect/0.1.2/src/spirv_reflect/lib.rs.html#1-601
I get this on Firefox 63.0.3: