mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-11 22:10:13 +01:00
feat: builtin Jsonnet
This commit is contained in:
parent
7308eecaf3
commit
09e8e3ddd9
5 changed files with 166 additions and 10 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue