Skip to content

Commit

Permalink
kochdocs: compiler docs now under compiler/
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 27, 2020
1 parent c83649b commit 3550d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ proc belongsToPackage(conf: ConfigRef; module: PSym): bool =
result = module.kind == skModule and module.getnimblePkgId == conf.mainPackageId

proc externalDep(d: PDoc; module: PSym): string =
if optWholeProject in d.conf.globalOptions:
if optWholeProject in d.conf.globalOptions or d.conf.docRoot.len > 0:
let full = AbsoluteFile toFullPath(d.conf, FileIndex module.position)
let tmp = getOutFile2(d.conf, presentationPath(d.conf, full), HtmlExt,
RelativeDir"htmldocs", sfMainModule notin module.flags)
Expand Down
3 changes: 1 addition & 2 deletions tools/kochdocs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ proc buildDoc(nimArgs, destPath: string) =
for d in items(doc):
var nimArgs2 = nimArgs
if d.isRelativeTo("compiler"):
when false: # enable this when bugs fixed
nimArgs2.add " --docroot:@pkg"
nimArgs2.add " --docroot:@pkg"
commands[i] = nim & " doc $# --git.url:$# --outdir:$# --index:on $#" %
[nimArgs2, gitUrl, destPath, d]
i.inc
Expand Down

0 comments on commit 3550d32

Please sign in to comment.