summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-06-01 10:21:41 -0700
committerGitHub <noreply@github.com>2020-06-01 19:21:41 +0200
commit3cf88c2b4955f330e147c98064969626719790de (patch)
treea491043e79dc618147708b24fc0818ef81ea11e6 /koch.nim
parent75e579ff8ec3b5b3659612ea24f8d2b8c0e20230 (diff)
downloadNim-3cf88c2b4955f330e147c98064969626719790de.tar.gz
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + various other fixes (#14501)
* update doc CI filter to include the files mostly likely to require doc rebuild
* remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes
* walkDirRecFilter, factor nativeToUnixPath workaround
* glob for getRst2html
* docslocal: 40s to build all docs
* revert code dedup in github actions which did not work alas...
* fixups
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim
index ee7c8006a..c1d8df8da 100644
--- a/koch.nim
+++ b/koch.nim
@@ -651,6 +651,13 @@ when isMainModule:
       of "latest": latest = true
       of "stable": latest = false
       of "nim": nimExe = op.val.absolutePath # absolute so still works with changeDir
+      of "docslocal":
+        # undocumented for now, allows to rebuild local docs in < 40s as follows:
+        # `./koch --nim:$nimb --docslocal:htmldocs2 --doccmd:skip --warnings:off --hints:off`
+        # whereas `./koch docs` takes 190s; useful for development.
+        doAssert op.val.len > 0
+        buildDocsDir(op.cmdLineRest, op.val)
+        break
       else: showHelp()
     of cmdArgument:
       case normalize(op.key)