diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-26 06:36:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 06:36:33 +0200 |
| commit | 1285b164e1acd3ca68c95bbcc9e91b0d7da26aa4 (patch) | |
| tree | 4fc7c952ca0923a095445c36dcd67ae08fe93685 /src/librustdoc/html/render/mod.rs | |
| parent | 610a601f36487ae4fc3d604fb25f505c8b8483ae (diff) | |
| parent | 51ae86dec97f4db86f624f609c41f6bf5e620301 (diff) | |
| download | rust-1285b164e1acd3ca68c95bbcc9e91b0d7da26aa4.tar.gz rust-1285b164e1acd3ca68c95bbcc9e91b0d7da26aa4.zip | |
Rollup merge of #147047 - notriddle:toolbar-index, r=GuillaumeGomez
rustdoc: put the toolbar on the all item index
Diffstat (limited to 'src/librustdoc/html/render/mod.rs')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 9a14137a6e8..d06540a65b5 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -603,7 +603,12 @@ impl AllTypes { } fmt::from_fn(|f| { - f.write_str("<h1>List of all items</h1>")?; + f.write_str( + "<div class=\"main-heading\">\ + <h1>List of all items</h1>\ + <rustdoc-toolbar></rustdoc-toolbar>\ + </div>", + )?; // Note: print_entries does not escape the title, because we know the current set of titles // doesn't require escaping. print_entries(&self.structs, ItemSection::Structs).fmt(f)?; |
