diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-14 18:02:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 18:02:53 +0100 |
commit | 8804e7f3dc771b6a10ff4cad25b45abd18d85529 (patch) | |
tree | 1b0e7f62b9668475455f4bb3b21b902e4d0daa9b /tests/rustdoc-js-std/parser-errors.js | |
parent | 43b42c5e784905fb17cd17496317c6c1ca7269f6 (diff) | |
parent | ba4b026e80c6278b6d0d8d4b4bf66daf4f49ed09 (diff) | |
download | rust-8804e7f3dc771b6a10ff4cad25b45abd18d85529.tar.gz |
Rollup merge of #108025 - notriddle:notriddle/intra-doc-link-tooltips, r=GuillaumeGomez
rustdoc: add more tooltips to intra-doc links
This commit makes intra-doc link tooltips consistent with generated links in function signatures and item tables, with the format `itemtype foo::bar::baz`. This way, you can tell if a link points at a trait or a type (for example) by mousing over it.
See also https://github.com/rust-lang/rust/pull/39697
Partially solves https://internals.rust-lang.org/t/rustdoc-suggestion-highlight-links-fn-s-mod-s-type-s-etc-appropriately-within-and-documentation/17931 (though the Internals thread asks for color-coding, while this PR adds a tooltip instead, it's accomplishing the same thing).
Before:
<img width="950" alt="image" src="https://user-images.githubusercontent.com/1593513/218653059-911cea01-7231-438a-ad98-be98ab73783f.png">
After:
<img width="432" alt="image" src="https://user-images.githubusercontent.com/1593513/218653201-34ca3aa7-18f1-4cb1-be68-a1411bbe797e.png">
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions