diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-08-21 08:09:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 20:09:48 -0400 |
commit | d8d86e07c39be1d41f2d26eabc8cbdf87b799d8e (patch) | |
tree | 14f6563071198b6a84429ec7668e1e926fccf7ef /compiler | |
parent | 1b61e71bb81ba53cf3cfbcbb581fa61cf7fac612 (diff) | |
download | Nim-d8d86e07c39be1d41f2d26eabc8cbdf87b799d8e.tar.gz |
fixes #11953; jsondoc creates no files unless the htmldocs dir is created (#20198)
* fixes #11953; jsondoc creates no files unless the htmldocs dir is created * target * fixes runner
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 8c95692df..1c03762fd 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -1617,6 +1617,8 @@ proc writeOutputJson*(d: PDoc, useWarning = false) = if optStdout in d.conf.globalOptions: write(stdout, $content) else: + let dir = d.destFile.splitFile.dir + createDir(dir) var f: File if open(f, d.destFile, fmWrite): write(f, $content) |