summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-01-08 14:09:58 -0800
committerGitHub <noreply@github.com>2021-01-08 23:09:58 +0100
commitffb130b59c3f3d03e694b76af37563b070e28af0 (patch)
treecb0d2062b1fbc9f55194518aefeab06648aed885 /tools
parent2a426ca8e2d64e4e415c20e97a6fbc8563ab1b2f (diff)
downloadNim-ffb130b59c3f3d03e694b76af37563b070e28af0.tar.gz
skip docs for `lib/fusion` (docs already run in fusion repo) (#16645)
* run CI docs on koch.nim changes to avoid future regressions

* kochdocs: skip lib/fusion
Diffstat (limited to 'tools')
-rw-r--r--tools/kochdocs.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index 75bb4443f..f258087e7 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -15,9 +15,7 @@ const
 
 var nimExe*: string
 
-template isJsOnly(file: string): bool =
-  file.isRelativeTo("lib/js") or
-  file.isRelativeTo("lib/fusion/js")
+template isJsOnly(file: string): bool = file.isRelativeTo("lib/js")
 
 proc exe*(f: string): string =
   result = addFileExt(f, ExeExt)
@@ -187,7 +185,8 @@ lib/system/widestrs.nim
 """.splitWhitespace()
 
   proc follow(a: PathEntry): bool =
-    a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"]
+    result = a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"] and
+      not a.path.isRelativeTo("lib/fusion")
   for entry in walkDirRecFilter("lib", follow = follow):
     let a = entry.path
     if entry.kind != pcFile or a.splitFile.ext != ".nim" or