Files
rust/src/doc
bors 3e525e3f6d Auto merge of #54733 - GuillaumeGomez:stabilize-rustdoc-theme, r=ollie27,Dylan-DPC
Stabilize rustdoc theme options

Closes #54730

This PR stabilizes the `--themes` (now `--theme`) and `--theme-checker` (now `--check-theme`) options, for allowing users to add custom themes to their documentation.

Rustdoc includes two themes by default: `light` and `dark`. Using the `--theme` option, you can give rustdoc a CSS file to include as an extra theme for that render. Themes are named after the CSS file used, so using `--theme /path/to/your/custom-theme.css` will add a theme called `custom-theme` to the documentation.

Even though the CLI flag to add a theme is getting stabilized, there's no guarantee that a theme file will always have the same effect on documentation generated with future versions of rustdoc. To aid in ensuring that a theme will work, the flag `--check-theme` is also available, which compares the CSS rules defined by a custom theme against the ones used in the `light` theme. If the `light` theme defines a CSS rule that the custom theme does not, rustdoc will report an error. (Rustdoc also performs this check for themes given to `--theme`, but only reports a warning when a difference is found.)
2019-11-18 19:03:21 +00:00
..
2019-11-12 09:57:41 -08:00
2019-11-12 09:57:41 -08:00
2019-09-04 08:35:52 -07:00
2019-11-12 09:57:41 -08:00
2019-11-12 09:57:41 -08:00
2019-11-12 09:57:41 -08:00
2019-11-12 10:46:24 -06:00
2019-09-30 07:46:10 +02:00
2019-02-05 15:32:59 +01:00
2018-10-05 08:52:44 -07:00
2017-02-21 14:03:13 -05:00
2019-03-24 22:06:34 -04:00
2018-05-17 12:25:24 -07:00