feat: builtin Jsonnet

This commit is contained in:
sh0rez 2020-04-29 17:13:38 +02:00
parent 7308eecaf3
commit 09e8e3ddd9
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
5 changed files with 166 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{
local lib = {
// reshape converts the Jsonnet structure to the one used by docsonnet:
// - put fields into an `api` key
// - put subpackages into `sub` key
@ -54,4 +54,6 @@
then reshaped { api: $.fillObjects(reshaped.api) }
else reshaped;
self.clean(filled),
}
};
lib.package(std.extVar("main"))