Commit a375754
tools: doc: improve async workflow of generate.js
Use fs.promises for read and write file
Use unified().process wich is async instead processSync
html and json are write in parallel
errors are logged and exit process with `1` code
Fixes: #30090
PR-URL: #30106
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>1 parent 621eaf9 commit a375754Copy full SHA for a375754
File tree
Expand file treeCollapse file tree
2 files changed
+58
-33
lines changedOpen diff view settings
Filter options
- tools/doc
Expand file treeCollapse file tree
2 files changed
+58
-33
lines changedOpen diff view settings
Collapse file
+57-32Lines changed: 57 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
56 | 59 | |
57 | | - |
58 | 60 | |
59 | | - |
60 | 61 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
| 62 | + |
68 | 63 | |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
69 | 69 | |
70 | | - |
71 | | - |
| 70 | + |
72 | 71 | |
73 | | - |
| 72 | + |
74 | 73 | |
75 | 74 | |
76 | 75 | |
| ||
80 | 79 | |
81 | 80 | |
82 | 81 | |
83 | | - |
84 | | - |
85 | | - |
| 82 | + |
86 | 83 | |
87 | 84 | |
| 85 | + |
88 | 86 | |
89 | | - |
90 | | - |
91 | 87 | |
92 | | - |
93 | | - |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
10 | 10 | |
|
0 commit comments