Fix empty project path
This commit is contained in:
parent
dee898dc51
commit
b12d77c98d
1 changed files with 5 additions and 0 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue