Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
023231a
Add links on source types to go to definition
GuillaumeGomez Apr 5, 2021
2104bf2
Add an option for the source code link generation
GuillaumeGomez Apr 13, 2021
83dcd30
Ensure that --generate-link-to-definition is only used with HTML outp…
GuillaumeGomez May 4, 2021
b689ced
Generate links for methods as well
GuillaumeGomez Apr 13, 2021
71763a5
Add test for source code pages URLs
GuillaumeGomez Apr 13, 2021
1abb7fa
Generate links for modules as well
GuillaumeGomez Apr 13, 2021
89bdc33
Update rustdoc tests
GuillaumeGomez Apr 13, 2021
b5c27b4
Underline source code links on hover
GuillaumeGomez Apr 14, 2021
2a3b71a
* Rename 'move_span' into 'local_span_to_global_span'
GuillaumeGomez Apr 20, 2021
38444f6
* Rename Span::from_rustc_span to Span::new
GuillaumeGomez Apr 22, 2021
c5c927d
Improve code readability
GuillaumeGomez May 4, 2021
e8869cb
Wrap the span_map tuple index into a type called "LightSpan"
GuillaumeGomez May 4, 2021
dffc9c0
Move extra arguments for highlight URL generation into a new ContextI…
GuillaumeGomez May 5, 2021
f233a70
Use rustdoc Span in LinkFromSrc directly
GuillaumeGomez May 5, 2021
ef0d909
formatting
GuillaumeGomez May 7, 2021
b336f28
Fix invalid generation of HTML in highlight
GuillaumeGomez May 12, 2021
1a48d1a
Add documentation and FIXME
GuillaumeGomez May 20, 2021
fd69fa8
Add missing root_path when generating links using href
GuillaumeGomez Jun 12, 2021
0799528
* Rename LightSpan::empty into LightSpan::dummy
GuillaumeGomez Jul 13, 2021
5cf300d
Remove warnings/errors from compiler when using typeck_body in rustdo…
GuillaumeGomez Jul 21, 2021
dfe4fec
Remove LightSpan and use Span directly
GuillaumeGomez Aug 2, 2021
ba11dc7
Fix URL conflict for std type
GuillaumeGomez Aug 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Underline source code links on hover
  • Loading branch information
GuillaumeGomez committed Aug 5, 2021
commit b5c27b49d02d5b6538e40e19e0dd1365cd7632d5
4 changes: 4 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ nav.sub {
border-bottom-left-radius: 5px;
}

.example-wrap > pre.rust a:hover {
text-decoration: underline;
}

.rustdoc:not(.source) .example-wrap > pre:not(.line-number) {
width: 100%;
overflow-x: auto;
Expand Down