mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-13 06:50:12 +01:00
feat: faster parser (#3)
* fix(load): support nested objects * feat: initial golang parser Moves most of load.libsonnet to a Golang app for hopefully much faster parsing (fingers crossed) * feat(fast): nested objects, subpackages * feat: incorporate fast mode into main binary Moves the work done in the fast directory into the main executable, removing the Jsonnet based parser in favor of the much faster Golang one.
This commit is contained in:
parent
75f8e7373c
commit
4e4d4a7170
7 changed files with 442 additions and 57 deletions
|
|
@ -15,6 +15,7 @@ func Render(pkg docsonnet.Package) map[string]string {
|
|||
}
|
||||
|
||||
func render(pkg docsonnet.Package, parents []string, root bool) map[string]string {
|
||||
fmt.Println("render", pkg.Name)
|
||||
link := "/" + strings.Join(append(parents, pkg.Name), "/")
|
||||
if root {
|
||||
link = "/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue