mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vdoc: don't add _docs directory when an out path is specified (#21233)
This commit is contained in:
parent
23532d4dec
commit
efc395eb64
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ fn (mut vd VDoc) generate_docs_from_file() {
|
|||
out.path = os.real_path('.')
|
||||
}
|
||||
if cfg.is_multi {
|
||||
out.path = os.join_path(out.path, '_docs')
|
||||
out.path = if out.path == '.' { '_docs' } else { out.path }
|
||||
if !os.exists(out.path) {
|
||||
os.mkdir(out.path) or { panic(err) }
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue