vdoc: show the V commit hash too, not just 0.2.4

pull/13389/head
Delyan Angelov 2022-02-06 23:50:11 +02:00
parent 191e99c248
commit 7f70493e1d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ fn (vd VDoc) gen_html(d doc.Doc) string {
write_toc(cn, mut symbols_toc) write_toc(cn, mut symbols_toc)
} // write head } // write head
// write css // write css
version := if vd.manifest.version.len != 0 { vd.manifest.version } else { '' } mut version := if vd.manifest.version.len != 0 { vd.manifest.version } else { '' }
version = [version, @VHASH].join(' ')
header_name := if cfg.is_multi && vd.docs.len > 1 { header_name := if cfg.is_multi && vd.docs.len > 1 {
os.file_name(os.real_path(cfg.input_path)) os.file_name(os.real_path(cfg.input_path))
} else { } else {