We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329e393 commit 901aa83Copy full SHA for 901aa83
cmd/tools/vdoc/html.v
@@ -515,6 +515,9 @@ fn write_toc(dn doc.DocNode, mut toc strings.Builder) {
515
}
516
517
if is_module_readme(dn) {
518
+ if dn.comments.len == 0 || (dn.comments.len > 0 && dn.comments[0].text.len == 0) {
519
+ return
520
+ }
521
toc.write('<li class="open"><a href="#readme_$toc_slug">README</a>')
522
} else if dn.name != 'Constants' {
523
toc.write('<li class="open"><a href="#$toc_slug">$dn.kind $dn.name</a>')
0 commit comments