summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/kochdocs.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index 12d3c31a3..43b802ee2 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -15,6 +15,8 @@ const
 
 var nimExe*: string
 
+template isJsOnly(file: string): bool = file.isRelativeTo("lib/js")
+
 proc exe*(f: string): string =
   result = addFileExt(f, ExeExt)
   when defined(windows):
@@ -256,10 +258,11 @@ proc buildDoc(nimArgs, destPath: string) =
       destPath / changeFileExt(splitFile(d).name, "html"), d]
     i.inc
   for d in items(doc):
+    let extra = if isJsOnly(d): " --backend:js " else: ""
     var nimArgs2 = nimArgs
     if d.isRelativeTo("compiler"): doAssert false
-    commands[i] = nim & " doc $# --git.url:$# --outdir:$# --index:on $#" %
-      [nimArgs2, gitUrl, destPath, d]
+    commands[i] = nim & " doc $# $# --git.url:$# --outdir:$# --index:on $#" %
+      [extra, nimArgs2, gitUrl, destPath, d]
     i.inc
   for d in items(withoutIndex):
     commands[i] = nim & " doc2 $# --git.url:$# -o:$# $#" %
ass='alt'>
db4f617af ^
1f63d1c76 ^
db4f617af ^



1f63d1c76 ^
db4f617af ^
8c671d22d ^
1f63d1c76 ^
99bcc233c ^
4d4b3b1c0 ^
ae0e5604f ^








db4f617af ^




8c671d22d ^

49d810f34 ^

db4f617af ^




1f63d1c76 ^
053309e60 ^
1f63d1c76 ^
a58a2f382 ^
db4f617af ^








ff4a69b62 ^

db4f617af ^
300430fbb ^
e27e873b7 ^
31bb4311e ^
e27e873b7 ^

8c671d22d ^
e27e873b7 ^
49d810f34 ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88