Skip to content

Commit 6e79039

Browse files
authored
chore(sidebar): remove unused toggle class (#234)
1 parent a1460f4 commit 6e79039

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

crates/rari-doc/src/helpers/subpages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ pub fn list_sub_pages_flattened_grouped_internal(
268268
for (prefix, group) in grouped {
269269
let keep_group = group.len() > 2;
270270
if keep_group {
271-
out.push_str("<li class=\"toggle\"><details><summary>");
271+
out.push_str("<li><details><summary>");
272272
out.push_str(&html_escape::encode_safe(prefix));
273273
out.push_str("-*</summary><ol>");
274274
}

crates/rari-doc/src/html/sidebar.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,6 @@ impl SidebarMetaEntry {
593593
if self.section {
594594
out.push_str(" class=\"section\"");
595595
}
596-
if self.details.is_set() || !matches!(self.children, MetaChildren::None) {
597-
out.push_str(" class=\"toggle\"");
598-
}
599596
if self.details.is_set() {
600597
out.push_str("><details");
601598
if self.details.is_open() {

0 commit comments

Comments
 (0)