rust/src/librustdoc/html/templates
Matthias Krüger 9be97ae8e2
Rollup merge of #129796 - GuillaumeGomez:unify-code-examples, r=notriddle
Unify scraped examples with other code examples

Fixes #129763.

This first PR both fixes #129763 but also unifies buttons display for code examples:

![image](https://github.com/user-attachments/assets/c8475945-dcc3-4c25-8d7d-1659f85301c8)

You can test it [here](https://rustdoc.crud.net/imperio/unify-code-examples/doc/scrape_examples/fn.test.html) and [here](https://rustdoc.crud.net/imperio/unify-code-examples/doc/scrape_examples/fn.test_many.html).

I'm planning to send a follow-up to make the buttons generated in JS directly (or I can do it in this PR directly if you prefer).

cc ```@willcrichton```
r? ```@notriddle```
2024-09-05 18:58:56 +02:00
..
STYLE.md Replace askama with rinja 2024-07-23 11:19:55 +02:00
item_info.html Fix union fields display 2023-06-21 17:25:19 +02:00
item_union.html Bump `askama` version 2024-01-24 01:04:34 +00:00
page.html rustdoc: use `<wbr>` in sidebar headers 2024-07-29 10:30:56 -07:00
print_item.html rustdoc: load icons from css instead of inline 2024-04-09 19:35:23 -07:00
scraped_source.html Simplify CSS but wrapping scraped example into a div and move the title out of the code block 2024-09-02 15:59:00 +02:00
short_item_info.html Fix improper escaping of deprecation reasons 2023-03-20 05:21:51 +00:00
sidebar.html rustdoc: consistentify `#TOC` and `#ModNav` to lowercase 2024-08-20 16:51:40 -07:00
source.html Unify scraped examples with other code examples 2024-08-31 00:12:16 +02:00
type_layout.html rustdoc: remove small from `small-section-header` 2023-11-29 13:40:07 -07:00
type_layout_size.html rustdoc: use a separate template for type layout size 2023-04-18 10:21:04 -07:00