Fix std fallback and docs publish

This commit is contained in:
Ganesh Viswanathan 2019-10-10 14:45:26 -07:00
commit 3e9dc2fb0f
2 changed files with 3 additions and 3 deletions

View file

@ -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`)

View file

@ -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