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
commit ffb130b59c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

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

View file

@ -15,9 +15,7 @@ const
var nimExe*: string var nimExe*: string
template isJsOnly(file: string): bool = template isJsOnly(file: string): bool = file.isRelativeTo("lib/js")
file.isRelativeTo("lib/js") or
file.isRelativeTo("lib/fusion/js")
proc exe*(f: string): string = proc exe*(f: string): string =
result = addFileExt(f, ExeExt) result = addFileExt(f, ExeExt)
@ -187,7 +185,8 @@ lib/system/widestrs.nim
""".splitWhitespace() """.splitWhitespace()
proc follow(a: PathEntry): bool = 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): for entry in walkDirRecFilter("lib", follow = follow):
let a = entry.path let a = entry.path
if entry.kind != pcFile or a.splitFile.ext != ".nim" or if entry.kind != pcFile or a.splitFile.ext != ".nim" or