* fix #13150 `nim doc --project` works with duplicate names and with imports below main project file * add to help; fixup after #13212 isRelativeTo got merged * fix test tests/compilerapi/tcompilerapi.nim * remove nimblePkg field; compute on the fly instead * kochdocs: compiler docs now under compiler/ * --docRoot now has smart default: best among @pkg, @path
This commit is contained in:
parent
574f61315d
commit
7ec7731f82
12 changed files with 132 additions and 27 deletions
|
|
@ -319,9 +319,11 @@ proc buildDoc(nimArgs, destPath: string) =
|
|||
destPath / changeFileExt(splitFile(d).name, "html"), d]
|
||||
i.inc
|
||||
for d in items(doc):
|
||||
commands[i] = nim & " doc $# --git.url:$# -o:$# --index:on $#" %
|
||||
[nimArgs, gitUrl,
|
||||
destPath / changeFileExt(splitFile(d).name, "html"), d]
|
||||
var nimArgs2 = nimArgs
|
||||
if d.isRelativeTo("compiler"):
|
||||
nimArgs2.add " --docroot"
|
||||
commands[i] = nim & " doc $# --git.url:$# --outdir:$# --index:on $#" %
|
||||
[nimArgs2, gitUrl, destPath, d]
|
||||
i.inc
|
||||
for d in items(withoutIndex):
|
||||
commands[i] = nim & " doc2 $# --git.url:$# -o:$# $#" %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue