From b12d77c98d6cb4f6a8ad29c47e8964831cb1990d Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 3 Oct 2019 16:29:01 -0500 Subject: Fix empty project path --- nimterop/docs.nim | 5 +++++ 1 file changed, 5 insertions(+) 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}") -- cgit v1.2.3