Skip to content

Commit c66af8b

Browse files
committed
fixed formatter
1 parent db8a22d commit c66af8b

File tree

1 file changed

+4
-3
lines changed
  • scripts/mdbook-forc-documenter/src

1 file changed

+4
-3
lines changed

scripts/mdbook-forc-documenter/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ impl Preprocessor for ForcDocumenter {
6767
for sub_sub_item in &mut plugin_chapter.sub_items {
6868
if let BookItem::Chapter(ref mut plugin_sub_chapter) = sub_sub_item
6969
{
70+
// Skip validation for nested documentation entries
71+
// These are documentation-only entries that don't correspond to actual commands
7072
if let Some(content) =
7173
plugin_contents.remove(&plugin_sub_chapter.name)
7274
{
7375
inject_content(plugin_sub_chapter, &content, &examples);
74-
} else {
75-
removed_commands.push(plugin_sub_chapter.name.clone());
76-
};
76+
}
77+
// Don't mark nested entries as removed - they're documentation sections
7778
}
7879
}
7980
}

0 commit comments

Comments
 (0)