ci: fix v -W build-tools

This commit is contained in:
Delyan Angelov 2021-02-22 15:33:03 +02:00
parent 7a6fd359d0
commit 2516c07614
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 30 additions and 36 deletions

View file

@ -80,9 +80,9 @@ fn (vd VDoc) gen_json(d doc.Doc) string {
} else {
d.head.merge_comments_without_examples()
}
jw.write('{"module_name":"$d.head.name","description":"${escape(comments)}","contents":')
jw.write(json.encode(d.contents.keys().map(d.contents[it])))
jw.write(',"generator":"vdoc","time_generated":"$d.time_generated.str()"}')
jw.write_string('{"module_name":"$d.head.name","description":"${escape(comments)}","contents":')
jw.write_string(json.encode(d.contents.keys().map(d.contents[it])))
jw.write_string(',"generator":"vdoc","time_generated":"$d.time_generated.str()"}')
return jw.str()
}