Skip to content

Commit

Permalink
vdoc: fix indention of readme when generating docs with -readme in pr…
Browse files Browse the repository at this point in the history
…oject root (#21232)
  • Loading branch information
ttytm committed Apr 9, 2024
1 parent efc395e commit ba74ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tools/vdoc/utils.v
Expand Up @@ -30,7 +30,7 @@ fn get_node_id(dn doc.DocNode) string {
}

fn is_module_readme(dn doc.DocNode) bool {
return dn.comments.len > 0 && dn.content == 'module ${dn.name}'
return dn.comments.len > 0 && (dn.content == 'module ${dn.name}' || dn.name == 'README')
}

fn trim_doc_node_description(desc string) string {
Expand Down

0 comments on commit ba74ab0

Please sign in to comment.