module docs

This commit is contained in:
faldor20 2024-03-10 21:15:36 +10:00
parent 0b56882785
commit 0c463555f4
No known key found for this signature in database
GPG key ID: F2216079B890CD57
4 changed files with 26 additions and 5 deletions

View file

@ -22,6 +22,7 @@ pub struct ModuleDocumentation {
pub enum DocEntry {
DocDef(DocDef),
DetachedDoc(String),
ModuleDoc(String),
}
#[derive(Debug, Clone)]
@ -179,7 +180,7 @@ fn generate_entry_docs(
if let Some(docs) = comments_or_new_lines_to_docs(header_comments) {
println!("<<docs:\n {:#?}\n docs>>", docs);
acc.push(DetachedDoc(docs));
acc.push(DocEntry::ModuleDoc(docs));
}
let mut before_comments_or_new_lines: Option<&[CommentOrNewline]> = None;