Commit graph

33 commits

Author SHA1 Message Date
Jeroen Op 't Eynde
0486f08fc1
fix(render): only render index/fields sections if needed (#31) 2022-10-24 09:12:59 +02:00
Jeroen Op 't Eynde
be3cfab4d8
fix(doc-util): print info message when docstring can't get parsed (#33) 2022-10-24 09:12:44 +02:00
Jeroen Op 't Eynde
794fed0c46
fix(pkg): lint errors (#32) 2022-10-24 09:08:51 +02:00
Maxim Levchenko
ccaa0b245b
feat: upgrade go-jsonnet to 0.18 (#30) 2022-10-20 13:01:16 +02:00
Matthias Winzeler
be066653f3
add notice about vendoring when using linters (#28) 2022-07-13 07:15:04 -04:00
Jeroen Op 't Eynde
fedfb4920f
Extend render template with common usage & install instructions (#27)
* Extend render template with jsonnet-bundler instructions

* push usage/install templates up the stack

* ensure newline between docs and header

* correctly quote default args
2022-06-13 13:42:51 +02:00
Jeroen Op 't Eynde
f47f46f93f
Render Markdown with Jsonnet natively (#26) 2022-06-11 14:49:15 +02:00
Duologic
fc3f9bca2d fix: correctly set the push directive 2021-06-17 15:22:26 +02:00
Duologic
21bb1d8d9c tag v0.0.3 for new docker images 2021-06-17 15:12:00 +02:00
Duologic
0cfb0bb2ea fix: github action 2021-06-17 15:08:01 +02:00
Jeroen Op 't Eynde
b4690affcf
bump version (#24) 2021-06-17 13:50:47 +02:00
Jeroen Op 't Eynde
ee3cb6711f
fix(load): idempotency (#23) 2021-06-17 13:16:55 +02:00
Max Audron
6be08106d0
add github actions (#18)
* add github workflows

* update go version to 1.16 to allow mac m1 build
2021-06-12 07:48:49 +02:00
Jeroen Op 't Eynde
d620eb4292
fix(actions): don't login/push on forks (#22) 2021-06-10 23:09:29 +02:00
Jeroen Op 't Eynde
4f0571d7e1
add github action to push image (#21)
Co-authored-by: sh0rez <me@shorez.de>
2021-06-04 22:10:06 +02:00
Jeroen Op 't Eynde
5776ff829f
feat: render directory structure instead of flat file names (#20)
* feat: render directory structure instead of flat file names

* add gitignore
2021-06-04 15:33:41 +02:00
Jeroen Op 't Eynde
1f8d4c6fbf
feat: containerize (#19)
* feat: containerize

* Stripping reduces binary size, fully static linking makes the binary more portable

Co-authored-by: sh0rez <me@shorez.de>
2021-06-03 14:58:12 +02:00
sh0rez
3e1757637e
feat(eval): handle fully qualified imports
Now also supports github.com/sh0rez/docsonnet/doc-util

Fixes #4
2020-08-17 09:27:22 +02:00
sh0rez
2f9dcb2d21
feat: document plain values (#12)
* feat: document plain values

Adds `d.val` to attach type and help information to plain Jsonnet
values, apart from specially treated `fn` and `obj`.

* feat: defaults
2020-07-27 16:59:04 +02:00
sh0rez
4c6f532e05
feat(lib): fn.withArgs 2020-05-13 12:31:07 +02:00
sh0rez
0d8cf83b56
fix(render): argument formatting
Printed go internals previously, now works properly with Jsonnet representation
2020-05-13 12:30:05 +02:00
sh0rez
66a158a8f2
feat: ignore
Implements ignoring certain keys right in Jsonnet, by adding:

  {
    '#foo': "ignore",
    foo: {}
  }

This is especially useful for objects that include `self` references,
which might otherwise recurse infinitely
2020-05-12 22:48:02 +02:00
sh0rez
14e9fc8f3f
refactor(render): filewriting in render pkg 2020-05-12 15:23:24 +02:00
sh0rez
f284bff4e5
feat(lib): type aliases
Adds a couple of common type aliases to make using easier
2020-05-12 15:22:46 +02:00
sh0rez
4e4d4a7170
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.
2020-05-10 23:09:12 +02:00
sh0rez
75f8e7373c
feat: make paths work 2020-05-02 22:24:18 +02:00
sh0rez
21c8ebc75f
feat: docs 2020-04-30 01:26:42 +02:00
sh0rez
6e95ea768a
feat: subpackage rendering 2020-04-30 00:47:43 +02:00
sh0rez
09e8e3ddd9
feat: builtin Jsonnet 2020-04-29 17:13:38 +02:00
sh0rez
7308eecaf3
feat: rewrite render 2020-04-29 16:39:37 +02:00
sh0rez
5fbee517fe
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.
2020-04-28 23:40:45 +02:00
sh0rez
a63ddd1061
feat: jsonnet interface 2020-03-25 16:20:51 +01:00
sh0rez
5977373772
feat: initial commit 2020-03-22 16:47:47 +01:00