Skip to content

Commit 91d97f4

Browse files
committed
kochdocs: skip lib/fusion
1 parent efa3df6 commit 91d97f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/kochdocs.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const
1515

1616
var nimExe*: string
1717

18-
template isJsOnly(file: string): bool = file.isRelativeTo("lib/js") or file.isRelativeTo("lib/fusion/js")
18+
template isJsOnly(file: string): bool = file.isRelativeTo("lib/js")
1919

2020
proc exe*(f: string): string =
2121
result = addFileExt(f, ExeExt)
@@ -185,7 +185,8 @@ lib/system/widestrs.nim
185185
""".splitWhitespace()
186186

187187
proc follow(a: PathEntry): bool =
188-
a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"]
188+
result = a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"] and
189+
not a.path.isRelativeTo("lib/fusion")
189190
for entry in walkDirRecFilter("lib", follow = follow):
190191
let a = entry.path
191192
if entry.kind != pcFile or a.splitFile.ext != ".nim" or

0 commit comments

Comments
 (0)