feat: inline package declaration

Docsonnet packages previously used to be declared in a `main.docsonnet`.
Because this file basically always contains the same, it is kinda
redundant.

To avoid that, the information from there has been inlined into the main
Jsonnet file, while the parser logic will become part of the Go
application, as embedded Jsonnet.
This commit is contained in:
sh0rez 2020-04-28 23:40:45 +02:00
parent a63ddd1061
commit 5fbee517fe
No known key found for this signature in database
GPG key ID: 87C71DF9F8181FF1
4 changed files with 91 additions and 83 deletions

View file

@ -13,7 +13,7 @@ import (
var indexTmpl = strings.Replace(`
# package {{.Name}}
´´´jsonnet
local {{.Name}} = import {{.Import}}
local {{.Name}} = import "{{.Import}}"
´´´
{{.Help}}