rust/src/librustdoc/html
Yuki Okushi d05e28df15
Rollup merge of #84321 - Swatinem:subvariant-details, r=GuillaumeGomez
rustdoc: Convert sub-variant toggle to HTML

Instead of creating a JS toggle, this injects details/summary for
sub-variants of enums. This also fixes the CSS so that the toggle button
does not jump when expanding/collapsing.

Takes inspiration from #83337 and should be considered part of #83332. Not quite sure if the `.sub-variant` selectors could be further simplified? AFAICS it is only used in that place, and that does not seem to allow any recursion.
2021-04-24 03:44:05 +09:00
..
highlight Add test for idents merge 2021-04-08 15:32:22 +02:00
markdown Treat header as first paragraph for shortened markdown descriptions 2021-03-09 17:48:14 -07:00
render Rollup merge of #84321 - Swatinem:subvariant-details, r=GuillaumeGomez 2021-04-24 03:44:05 +09:00
static Rollup merge of #84321 - Swatinem:subvariant-details, r=GuillaumeGomez 2021-04-24 03:44:05 +09:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs rustdoc tweaking 2021-01-30 01:02:18 +00:00
format.rs rustdoc: get rid of CURRENT_DEPTH 2021-04-17 23:08:28 -07:00
highlight.rs Merge idents if they are part of a path 2021-04-08 15:32:22 +02:00
layout.rs Rollup merge of #84340 - notriddle:patch-4, r=GuillaumeGomez 2021-04-20 11:08:28 +02:00
markdown.rs rustdoc: Hide #text in doc-tests 2021-04-22 18:43:16 -04:00
mod.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
sources.rs rustdoc: Use diagnostics for error when including sources 2021-03-23 19:29:49 -07:00
static_files.rs Update comment on search.js static file. 2021-04-14 12:17:24 -07:00
tests.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
toc.rs clippy fixes for librustdoc 2021-01-01 21:19:10 +01:00