parent
06232b7f2e
commit
28f2abe1a2
1 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ import
|
||||||
|
|
||||||
from uri import encodeUrl
|
from uri import encodeUrl
|
||||||
from std/private/globs import nativeToUnixPath
|
from std/private/globs import nativeToUnixPath
|
||||||
|
from nodejs import findNodeJs
|
||||||
|
|
||||||
const
|
const
|
||||||
exportSection = skField
|
exportSection = skField
|
||||||
|
|
@ -430,7 +430,9 @@ proc runAllExamples(d: PDoc) =
|
||||||
"rdoccmd", group.rdoccmd,
|
"rdoccmd", group.rdoccmd,
|
||||||
"docCmd", group.docCmd,
|
"docCmd", group.docCmd,
|
||||||
]
|
]
|
||||||
if os.execShellCmd(cmd) != 0:
|
if d.conf.backend == backendJs and findNodeJs() == "":
|
||||||
|
discard "ignore JS runnableExample"
|
||||||
|
elif os.execShellCmd(cmd) != 0:
|
||||||
d.conf.quitOrRaise "[runnableExamples] failed: generated file: '$1' group: '$2' cmd: $3" % [outp.string, group[].prettyString, cmd]
|
d.conf.quitOrRaise "[runnableExamples] failed: generated file: '$1' group: '$2' cmd: $3" % [outp.string, group[].prettyString, cmd]
|
||||||
else:
|
else:
|
||||||
# keep generated source file `outp` to allow inspection.
|
# keep generated source file `outp` to allow inspection.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue