diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-03 16:29:01 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-03 16:29:01 -0500 |
| commit | b12d77c98d6cb4f6a8ad29c47e8964831cb1990d (patch) | |
| tree | be8f6d62fb6d3a5d26dd47517cda3a370d918850 | |
| parent | dee898dc51c4fddebd16f27af88443edaa46a95a (diff) | |
| download | nimterop-b12d77c98d6cb4f6a8ad29c47e8964831cb1990d.tar.gz nimterop-b12d77c98d6cb4f6a8ad29c47e8964831cb1990d.zip | |
Fix empty project path
| -rw-r--r-- | nimterop/docs.nim | 5 |
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}") |
