* runnableExamples "-b:cpp -r:off": code
This commit is contained in:
parent
4ae341353d
commit
3d20f14193
6 changed files with 104 additions and 37 deletions
|
|
@ -24,12 +24,13 @@ proc testNimDoc(prjDir, docsDir: string; switches: NimSwitches; fixup = false) =
|
|||
nimBuildIndexSwitches = switches.buildIndex.join(" ")
|
||||
|
||||
putEnv("SOURCE_DATE_EPOCH", "100000")
|
||||
const nimExe = getCurrentCompilerExe() # so that `bin/nim_temp r nimdoc/tester.nim` works
|
||||
|
||||
if nimDocSwitches != "":
|
||||
exec("nim doc $1" % [nimDocSwitches])
|
||||
exec("$1 doc $2" % [nimExe, nimDocSwitches])
|
||||
|
||||
if nimBuildIndexSwitches != "":
|
||||
exec("nim buildIndex $1" % [nimBuildIndexSwitches])
|
||||
exec("$1 buildIndex $2" % [nimExe, nimBuildIndexSwitches])
|
||||
|
||||
for expected in walkDirRec(prjDir / "expected/"):
|
||||
let produced = expected.replace('\\', '/').replace("/expected/", "/$1/" % [docsDir])
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ function main() {
|
|||
<div id="tocRoot"></div>
|
||||
|
||||
<p class="module-desc">This is the top level module.
|
||||
<p><strong class="examples_text">Examples:</strong></p>
|
||||
<p><strong class="examples_text">Example:</strong></p>
|
||||
<pre class="listing"><span class="Keyword">import</span>
|
||||
<span class="Identifier">subdir</span> <span class="Operator">/</span> <span class="Identifier">subdir_b</span> <span class="Operator">/</span> <span class="Identifier">utils</span>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue