From b9f8528db675927aacc6443ae3a363711bb41945 Mon Sep 17 00:00:00 2001 From: zah Date: Fri, 8 Mar 2019 16:23:36 +0200 Subject: Don't include the nimhcr dev docs in the system module documentation (#10759) --- compiler/docgen.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/docgen.nim') 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) -- cgit 1.4.1-2-gfad0