mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Auto merge of #85859 - pickfire:patch-3, r=CraftSpider
Add title for copy to clipboard button in rustdoc This button ![image](https://user-images.githubusercontent.com/4687791/120210874-da4d1380-c262-11eb-9987-9145c4354029.png)
This commit is contained in:
commit
80af6b091f
@ -81,7 +81,8 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
|
||||
"<button id=\"copy-path\" onclick=\"copy_path(this)\">\
|
||||
<img src=\"{static_root_path}clipboard{suffix}.svg\" \
|
||||
width=\"19\" height=\"18\" \
|
||||
alt=\"Copy item import\">\
|
||||
alt=\"Copy item import\" \
|
||||
title=\"Copy item import to clipboard\">\
|
||||
</button>",
|
||||
static_root_path = page.get_static_root_path(),
|
||||
suffix = page.resource_suffix,
|
||||
|
Loading…
Reference in New Issue
Block a user