tools: generate `index.html` instead of `.html` for `v doc -m -f html .`
parent
3ae4513e2e
commit
c97f0c59d1
|
@ -156,6 +156,9 @@ fn (vd VDoc) get_file_name(mod string, out Output) string {
|
|||
} else if !cfg.is_multi && !os.is_dir(out.path) {
|
||||
name = os.file_name(out.path)
|
||||
}
|
||||
if name == '' {
|
||||
name = 'index'
|
||||
}
|
||||
name = name + match out.typ {
|
||||
.html { '.html' }
|
||||
.markdown { '.md' }
|
||||
|
|
Loading…
Reference in New Issue