mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vdoc: fix indention of readme when generating docs with -readme in project root (#21232)
This commit is contained in:
parent
efc395eb64
commit
ba74ab0ccf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue