Fix std fallback and docs publish
This commit is contained in:
parent
ff8c7330cd
commit
3e9dc2fb0f
2 changed files with 3 additions and 3 deletions
|
|
@ -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`)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue