Skip to content

Commit 490a014

Browse files
authored
tools: support a toc for projects, with single exposing module, in v doc (#19001)
1 parent 4ed9703 commit 490a014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/tools/vdoc/html.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ fn (vd VDoc) gen_html(d doc.Doc) string {
261261
} else {
262262
symbols_toc_str
263263
}).replace('{{ contents }}', contents.str()).replace('{{ right_content }}', if cfg.is_multi
264-
&& vd.docs.len > 1 && d.head.name != 'README' {
264+
&& d.head.name != 'README' {
265265
'<div class="doc-toc"><ul>' + symbols_toc_str + '</ul></div>'
266266
} else {
267267
''

0 commit comments

Comments
 (0)