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
This commit is contained in:
Timothee Cour
2021-01-08 14:09:58 -08:00
committed by GitHub
parent 2a426ca8e2
commit ffb130b59c
2 changed files with 4 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ on:
- 'tools/dochack/dochack.nim'
- 'tools/kochdocs.nim'
- '.github/workflows/ci_docs.yml'
- 'koch.nim'
jobs:
build:

View File

@@ -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