diff --git a/cmd/tools/vdoc/html.v b/cmd/tools/vdoc/html.v index 7152edf3e5..8ea90c430d 100644 --- a/cmd/tools/vdoc/html.v +++ b/cmd/tools/vdoc/html.v @@ -515,6 +515,9 @@ fn write_toc(dn doc.DocNode, mut toc strings.Builder) { } } if is_module_readme(dn) { + if dn.comments.len == 0 || (dn.comments.len > 0 && dn.comments[0].text.len == 0) { + return + } toc.write('
  • README') } else if dn.name != 'Constants' { toc.write('
  • $dn.kind $dn.name')