rust/src/librustdoc/html/static
Matthias Krüger 7af9ad1465
Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez
rustdoc: dedup search form HTML

This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because

- the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank
- it requires very little HTML, so it's a real win in size

[parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token

This shrinks the standard library by about 60MiB, by my test.

There should be no visible changes. Just use less disk space.
2024-05-07 18:12:54 +02:00
..
css Fix bad color for setting cog in ayu theme 2024-05-05 20:07:12 +02:00
fonts avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
images Inline wheel.svg into CSS 2024-04-28 17:23:12 +02:00
js Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez 2024-05-07 18:12:54 +02:00
.eslintrc.js rustdoc-search: shard the search result descriptions 2024-03-16 22:07:30 -07:00
COPYRIGHT.txt avoid reuse tripping over copyright notices 2023-03-09 12:24:43 +01:00
LICENSE-APACHE.txt Make rustdoc output comply with licenses 2015-09-19 10:42:03 +01:00
LICENSE-MIT.txt Make rustdoc output comply with licenses 2015-09-19 10:42:03 +01:00
scrape-examples-help.md Update scrape-examples help, fix documentation typos 2022-12-07 09:08:43 -08:00