Rollup merge of #62971 - GuillaumeGomez:keyword-sidebar, r=nobody
Add keywords item into the sidebar Fixes #62939. cc @pravic screenshot of the result:  r? @QuietMisdreavus
This commit is contained in:
commit
e2934bab3e
2 changed files with 3 additions and 1 deletions
|
@ -5007,7 +5007,8 @@ fn sidebar_module(fmt: &mut fmt::Formatter<'_>, _it: &clean::Item,
|
|||
ItemType::Enum, ItemType::Constant, ItemType::Static, ItemType::Trait,
|
||||
ItemType::Function, ItemType::Typedef, ItemType::Union, ItemType::Impl,
|
||||
ItemType::TyMethod, ItemType::Method, ItemType::StructField, ItemType::Variant,
|
||||
ItemType::AssocType, ItemType::AssocConst, ItemType::ForeignType] {
|
||||
ItemType::AssocType, ItemType::AssocConst, ItemType::ForeignType,
|
||||
ItemType::Keyword] {
|
||||
if items.iter().any(|it| !it.is_stripped() && it.type_() == myty) {
|
||||
let (short, name) = item_ty_to_strs(&myty);
|
||||
sidebar.push_str(&format!("<li><a href=\"#{id}\">{name}</a></li>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue