Remove toggle for "undocumented items."
Per discussion in #84326. For trait implementations, this was misleading: the items actually do have documentation (but it comes from the trait definition). For both trait implementations and trait implementors, this was redundant: in both of those cases, the items are default-hidden by different toggle at the level above. Update tests: Remove XPath selectors that over-specified on details tag, in cases that weren't testing toggles. Add an explicit test for toggles on methods. Rename item-hide-threshold to toggle-item-contents for consistency.
This commit is contained in:
parent
84b1005bfd
commit
10bafe1975
8 changed files with 64 additions and 54 deletions
|
@ -1650,16 +1650,10 @@ fn render_impl(
|
|||
);
|
||||
}
|
||||
}
|
||||
if toggled {
|
||||
w.write_str("<div class=\"impl-items\">");
|
||||
w.push_buffer(default_impl_items);
|
||||
if trait_.is_some() && !impl_items.is_empty() {
|
||||
w.write_str("<details class=\"undocumented\"><summary></summary>");
|
||||
close_tags.insert_str(0, "</details>");
|
||||
}
|
||||
w.push_buffer(impl_items);
|
||||
close_tags.insert_str(0, "</div>");
|
||||
}
|
||||
w.write_str("<div class=\"impl-items\">");
|
||||
w.push_buffer(default_impl_items);
|
||||
w.push_buffer(impl_items);
|
||||
close_tags.insert_str(0, "</div>");
|
||||
w.write_str(&close_tags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue