mirror of
https://github.com/vlang/v.git
synced 2025-09-13 17:36:52 -04:00
vdoc: fix indention of readme when generating docs with -readme in project root (#21232)
This commit is contained in:
parent
efc395eb64
commit
ba74ab0ccf
@ -30,7 +30,7 @@ fn get_node_id(dn doc.DocNode) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn is_module_readme(dn doc.DocNode) bool {
|
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 {
|
fn trim_doc_node_description(desc string) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user