mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: generate index.html
instead of .html
for v doc -m -f html .
This commit is contained in:
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) {
|
} else if !cfg.is_multi && !os.is_dir(out.path) {
|
||||||
name = os.file_name(out.path)
|
name = os.file_name(out.path)
|
||||||
}
|
}
|
||||||
|
if name == '' {
|
||||||
|
name = 'index'
|
||||||
|
}
|
||||||
name = name + match out.typ {
|
name = name + match out.typ {
|
||||||
.html { '.html' }
|
.html { '.html' }
|
||||||
.markdown { '.md' }
|
.markdown { '.md' }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user