diff options
author | zah <zahary@gmail.com> | 2019-03-08 16:23:36 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-08 15:23:36 +0100 |
commit | b9f8528db675927aacc6443ae3a363711bb41945 (patch) | |
tree | 49d27a29d8fc67daa51f34db9b3647c29c1255ba /compiler/docgen.nim | |
parent | bba3a20e7ca50456fa1fc96ec4fa7e917113a840 (diff) | |
download | Nim-b9f8528db675927aacc6443ae3a363711bb41945.tar.gz |
Don't include the nimhcr dev docs in the system module documentation (#10759)
Diffstat (limited to 'compiler/docgen.nim')
-rw-r--r-- | compiler/docgen.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 5c3e1af34..8fdf0e4b8 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -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) |