diff options
| author | Will Crichton <wcrichto@cs.stanford.edu> | 2022-01-27 17:00:31 -0800 |
|---|---|---|
| committer | Will Crichton <wcrichto@cs.stanford.edu> | 2022-03-27 18:11:50 -0700 |
| commit | ae5d0cbe74a07baef9eb92dde82b28feea8961cd (patch) | |
| tree | 1edfc7666057d49e7d77b35f19a9fe86627d438f /src/librustdoc/html/render | |
| parent | f1e3e2c366b05f232c6b2225af7fc155925029df (diff) | |
| download | rust-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.rs | 2 |
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\">" |
