Fix doc generation

This commit is contained in:
Ruslan Mustakov 2017-12-08 13:21:01 +07:00
commit 8d6972f729
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ proc buildDocs*(outDir, godotNimDir, godotBin: string) =
allNimFiles.add(file) allNimFiles.add(file)
for file in allNimFiles: for file in allNimFiles:
spawn execOrFail( spawn execOrFail(
"nim doc -o:" & quoted(outName(outDirAbs, file)) & "nim doc -d:useRealtimeGc -o:" & quoted(outName(outDirAbs, file)) &
" --git.url:" & quoted(gitHubUrl) & " --git.url:" & quoted(gitHubUrl) &
" --git.commit:" & quoted(gitCommit) & " --git.commit:" & quoted(gitCommit) &
' ' & quoted(file)) ' ' & quoted(file))
@ -103,7 +103,7 @@ proc buildDocs*(outDir, godotNimDir, godotBin: string) =
createDir(godotApiFolder) createDir(godotApiFolder)
genApiFiles(godotApiFolder, godotBinAbs) genApiFiles(godotApiFolder, godotBinAbs)
for file in walkDirRec(godotApiFolder, {pcFile, pcDir}, [".nim"]): for file in walkDirRec(godotApiFolder, {pcFile, pcDir}, [".nim"]):
spawn execOrFail("nim doc " & quoted(file)) spawn execOrFail("nim doc -d:useRealtimeGc " & quoted(file))
sync() sync()

View file

@ -2,7 +2,7 @@
import streams, json, os, strutils, times, sets, tables import streams, json, os, strutils, times, sets, tables
import sequtils, algorithm import sequtils, algorithm
import compiler / [ast, renderer, idents, astalgo] import compiler.ast, compiler.renderer, compiler.idents, compiler.astalgo
proc ident(ident: string): PNode = proc ident(ident: string): PNode =
result = newNode(nkIdent) result = newNode(nkIdent)