doc2 improvements

This commit is contained in:
Araq 2012-06-24 02:34:11 +02:00
commit 869a5aa90d
10 changed files with 27 additions and 22 deletions

View file

@ -22,8 +22,12 @@ type
proc close(p: PPassContext, n: PNode): PNode =
var g = PGen(p)
writeOutput(g.doc, g.filename, HtmlExt)
generateIndex(g.doc)
let useWarning = sfMainModule notin g.module.flags
writeOutput(g.doc, g.filename, HtmlExt, useWarning)
try:
generateIndex(g.doc)
except EIO:
nil
proc processNode(c: PPassContext, n: PNode): PNode =
result = n