Skip to content

skip docs for lib/fusion (docs already run in fusion repo) #16645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
- 'tools/dochack/dochack.nim'
- 'tools/kochdocs.nim'
- '.github/workflows/ci_docs.yml'

- 'koch.nim'

jobs:
build:
Expand Down
7 changes: 3 additions & 4 deletions tools/kochdocs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down