about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2022-01-27 17:00:31 -0800
committerWill Crichton <wcrichto@cs.stanford.edu>2022-03-27 18:11:50 -0700
commitae5d0cbe74a07baef9eb92dde82b28feea8961cd (patch)
tree1edfc7666057d49e7d77b35f19a9fe86627d438f /src/librustdoc/html/render
parentf1e3e2c366b05f232c6b2225af7fc155925029df (diff)
downloadrust-ae5d0cbe74a07baef9eb92dde82b28feea8961cd.tar.gz
rust-ae5d0cbe74a07baef9eb92dde82b28feea8961cd.zip
Improve alignment of additional scraped examples, add scrape examples help page
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 6b57ff5eeba..b5536dc930f 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -2671,6 +2671,7 @@ fn render_call_locations(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item) {
           <span></span>\
           <h5 id=\"{id}\">\
              <a href=\"#{id}\">Examples found in repository</a>\
+             <a class=\"scrape-help\" href=\"https://doc.rust-lang.org/rustdoc/scraped-examples.html\" target=\"_blank\">?</a>\
           </h5>",
         id = id
     );
@@ -2842,6 +2843,7 @@ fn render_call_locations(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item) {
                   <summary class=\"hideme\">\
                      <span>More examples</span>\
                   </summary>\
+                  <div class=\"hide-more\">Hide additional examples</div>\
                   <div class=\"more-scraped-examples\">\
                     <div class=\"toggle-line\"><div class=\"toggle-line-inner\"></div></div>\
                     <div class=\"more-scraped-examples-inner\">"