diff options
author | Araq <rumpf_a@web.de> | 2012-11-01 08:32:30 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-01 08:32:30 +0100 |
commit | f35b51c68fb758b4ab40b06674e75a75ebf1bf38 (patch) | |
tree | 9923eb7c97f2e15b57a3003be7328ebb9e8a2e3f /tools | |
parent | 42d0911d6a1daa60cfe0dcd2cf8c403083f6ca65 (diff) | |
download | Nim-f35b51c68fb758b4ab40b06674e75a75ebf1bf38.tar.gz |
doc2 support for nimweb; fixed graphics.withEvents
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/nimweb.nim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim index 2ca913ec8..de9bcb440 100755 --- a/tools/nimweb.nim +++ b/tools/nimweb.nim @@ -14,7 +14,7 @@ type TKeyValPair = tuple[key, val: string] TConfigData = object of TObject tabs, links: seq[TKeyValPair] - doc, srcdoc, webdoc, pdf: seq[string] + doc, srcdoc, srcdoc2, webdoc, pdf: seq[string] authors, projectName, projectTitle, logo, infile, outdir, ticker: string vars: PStringTable nimrodArgs: string @@ -24,6 +24,7 @@ proc initConfigData(c: var TConfigData) = c.links = @[] c.doc = @[] c.srcdoc = @[] + c.srcdoc2 = @[] c.webdoc = @[] c.pdf = @[] c.infile = "" @@ -139,6 +140,7 @@ proc parseIniFile(c: var TConfigData) = of "doc": addFiles(c.doc, "doc", ".txt", split(v, {';'})) of "pdf": addFiles(c.pdf, "doc", ".txt", split(v, {';'})) of "srcdoc": addFiles(c.srcdoc, "lib", ".nim", split(v, {';'})) + of "srcdoc2": addFiles(c.srcdoc2, "lib", ".nim", split(v, {';'})) of "webdoc": addFiles(c.webdoc, "lib", ".nim", split(v, {';'})) else: quit(errorStr(p, "unknown variable: " & k.key)) else: nil @@ -167,6 +169,9 @@ proc buildDoc(c: var TConfigData, destPath: string) = for d in items(c.srcdoc): Exec("nimrod doc $# -o:$# --index:on $#" % [c.nimrodArgs, destPath / changeFileExt(splitFile(d).name, "html"), d]) + for d in items(c.srcdoc2): + Exec("nimrod doc2 $# -o:$# --index:on $#" % + [c.nimrodArgs, destPath / changeFileExt(splitFile(d).name, "html"), d]) Exec("nimrod buildIndex -o:$1/theindex.html $1" % [destPath]) proc buildPdfDoc(c: var TConfigData, destPath: string) = |