mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
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:
2
.github/workflows/ci_docs.yml
vendored
2
.github/workflows/ci_docs.yml
vendored
@@ -26,7 +26,7 @@ on:
|
||||
- 'tools/dochack/dochack.nim'
|
||||
- 'tools/kochdocs.nim'
|
||||
- '.github/workflows/ci_docs.yml'
|
||||
|
||||
- 'koch.nim'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user