fix hintSuccess: out was wrong for nim doc without -o flag (#13569)
This commit is contained in:
parent
9961d1f67d
commit
9fa070b1dc
1 changed files with 2 additions and 2 deletions
|
|
@ -1135,8 +1135,8 @@ proc generateIndex*(d: PDoc) =
|
||||||
|
|
||||||
proc updateOutfile(d: PDoc, outfile: AbsoluteFile) =
|
proc updateOutfile(d: PDoc, outfile: AbsoluteFile) =
|
||||||
if d.module == nil or sfMainModule in d.module.flags: # nil for eg for commandRst2Html
|
if d.module == nil or sfMainModule in d.module.flags: # nil for eg for commandRst2Html
|
||||||
if d.conf.outFile.isEmpty and not d.conf.outDir.isEmpty:
|
if d.conf.outDir.isEmpty: d.conf.outDir = d.conf.projectPath
|
||||||
d.conf.outFile = outfile.relativeTo(d.conf.outDir)
|
if d.conf.outFile.isEmpty: d.conf.outFile = outfile.relativeTo(d.conf.outDir)
|
||||||
|
|
||||||
proc writeOutput*(d: PDoc, useWarning = false) =
|
proc writeOutput*(d: PDoc, useWarning = false) =
|
||||||
runAllExamples(d)
|
runAllExamples(d)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue