Don't include the nimhcr dev docs in the system module documentation (#10759)

This commit is contained in:
zah 2019-03-08 16:23:36 +02:00 • committed by Andreas Rumpf
commit b9f8528db6
5 changed files with 186 additions and 188 deletions

View file

@ -992,10 +992,13 @@ proc writeOutputJson*(d: PDoc, useWarning = false) =
warnUser, "unable to open file \"" & d.destFile.string &
"\" for writing")
proc commandDoc*(cache: IdentCache, conf: ConfigRef) =
proc handleDocOutputOptions*(conf: ConfigRef) =
if optWholeProject in conf.globalOptions:
# Backward compatibility with previous versions
conf.outDir = AbsoluteDir(conf.outDir / conf.outFile)
proc commandDoc*(cache: IdentCache, conf: ConfigRef) =
handleDocOutputOptions conf
var ast = parseFile(conf.projectMainIdx, cache, conf)
if ast == nil: return
var d = newDocumentor(conf.projectFull, cache, conf)