doc2 improvements
This commit is contained in:
parent
2d8138768a
commit
869a5aa90d
10 changed files with 27 additions and 22 deletions
|
|
@ -322,12 +322,12 @@ proc generateIndex*(d: PDoc) =
|
|||
writeIndexFile(d[], splitFile(options.outFile).dir /
|
||||
splitFile(d.filename).name & indexExt)
|
||||
|
||||
proc writeOutput*(d: PDoc, filename, outExt: string) =
|
||||
proc writeOutput*(d: PDoc, filename, outExt: string, useWarning = false) =
|
||||
var content = genOutFile(d)
|
||||
if optStdout in gGlobalOptions:
|
||||
writeRope(stdout, content)
|
||||
else:
|
||||
writeRope(content, getOutFile(filename, outExt))
|
||||
writeRope(content, getOutFile(filename, outExt), useWarning)
|
||||
|
||||
proc CommandDoc*() =
|
||||
var ast = parseFile(addFileExt(gProjectFull, nimExt))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue