Fix empty project path

This commit is contained in:
Ganesh Viswanathan 2019-10-03 16:29:01 -05:00
commit b12d77c98d

View file

@ -24,6 +24,11 @@ proc buildDocs*(files: seq[string], path: string, baseDir = getProjectPath() & "
##
## WARNING: `--publish` will destroy any existing content in this branch.
let
baseDir =
if baseDir == "/":
getCurrentDir() & "/"
else:
baseDir
path = baseDir & path
for file in files:
echo gorge(&"nim doc -o:{path} --project --index:on {baseDir & file}")