aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nimterop/docs.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/nimterop/docs.nim b/nimterop/docs.nim
index d7cb1a7..0b46967 100644
--- a/nimterop/docs.nim
+++ b/nimterop/docs.nim
@@ -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}")