diff options
| -rw-r--r-- | nimterop/build.nim | 4 | ||||
| -rw-r--r-- | nimterop/docs.nim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nimterop/build.nim b/nimterop/build.nim index 943e91e..81e7445 100644 --- a/nimterop/build.nim +++ b/nimterop/build.nim @@ -922,7 +922,7 @@ macro getHeader*(header: static[string], giturl: static[string] = "", dlurl: sta when `nameStd`: getStdLibPath(`lname`) else: "" `path`* = - when stdPath.len != 0: + when stdPath.len != 0 and stdLPath.len != 0: stdPath elif `nameGit`: getGitPath(`header`, `giturl`, `outdir`, `version`) @@ -931,7 +931,7 @@ macro getHeader*(header: static[string], giturl: static[string] = "", dlurl: sta else: getLocalPath(`header`, `outdir`) - when stdPath.len == 0 and declared(`preBuild`): + when `path` != stdPath and declared(`preBuild`): static: `preBuild`(`outdir`, `path`) diff --git a/nimterop/docs.nim b/nimterop/docs.nim index 57c806b..17089ec 100644 --- a/nimterop/docs.nim +++ b/nimterop/docs.nim @@ -79,5 +79,5 @@ proc buildDocs*(files: openArray[string], path: string, baseDir = getProjectPath for i in 0 .. paramCount(): if paramStr(i) == "--publish": - echo execAction(&"ghp-import --no-jekyll -fp {path}") + echo execAction(&"cd {path} && ghp-import --no-jekyll -fp {path}") break
\ No newline at end of file |
