doc gen :test: feature: created a nested directory in order to keep Nim happy in parallel builds
This commit is contained in:
parent
cb8dd0252f
commit
7660e59afe
1 changed files with 4 additions and 1 deletions
|
|
@ -805,7 +805,10 @@ proc commandRstAux(filename, outExt: string) =
|
|||
var outp: string
|
||||
if filename.len == 0:
|
||||
inc(d.id)
|
||||
outp = completeGeneratedFilePath(splitFile(d.filename).name & "_snippet_" & $d.id & ".nim")
|
||||
let nameOnly = splitFile(d.filename).name
|
||||
let subdir = getNimcacheDir() / nameOnly
|
||||
createDir(subdir)
|
||||
outp = subdir / (nameOnly & "_snippet_" & $d.id & ".nim")
|
||||
elif isAbsolute(filename):
|
||||
outp = filename
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue