mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-12 06:20:12 +01:00
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:
parent
a63ddd1061
commit
5fbee517fe
4 changed files with 91 additions and 83 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
var indexTmpl = strings.Replace(`
|
||||
# package {{.Name}}
|
||||
´´´jsonnet
|
||||
local {{.Name}} = import {{.Import}}
|
||||
local {{.Name}} = import "{{.Import}}"
|
||||
´´´
|
||||
|
||||
{{.Help}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue