rust/src/librustdoc/html/static
Matthias Krüger 55f8b5f559
Rollup merge of #91062 - jsha:static-file-replace, r=jyn514,GuillaumeGomez
rustdoc: Consolidate static-file replacement mechanism

There were a few places in rustdoc where we would take static JS or CSS and rewrite it at doc generation time to insert values. This consolidates all the CSS instances into one CSS file and replaces the JS examples with data- attributes on the rustdoc-vars div.

Demo https://rustdoc.crud.net/jsha/static-file-replace/test_docs/

r? ``@GuillaumeGomez``
2021-11-27 11:46:43 +01:00
..
css Rollup merge of #91062 - jsha:static-file-replace, r=jyn514,GuillaumeGomez 2021-11-27 11:46:43 +01:00
fonts rustdoc: use ttf based font for cjk glyphs 2021-10-26 10:58:13 +09:00
images Simplify usage of CSS background-image 2021-08-03 20:03:07 +02:00
js Consistentize the system for image URLs in CSS. 2021-11-24 19:41:48 -08:00
.eslintrc.js Added trailing newline 2018-12-04 16:13:04 -08:00
COPYRIGHT.txt include reference to woff2 files in COPYRIGHT.txt 2021-06-17 17:52:09 +02: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