Commit graph

45 commits

Author SHA1 Message Date
894f3a5b2a
feat: add extcode flag 2023-03-03 16:53:03 +01:00
629398bcac
chore: add Earthfile 2023-03-01 19:58:10 +01:00
a4613ac56c
deps: update jsonnet to 0.19.1 2023-03-01 19:33:55 +01:00
Matthias Riegler
c9cc5534fc
fix: fetch-depth of go-releaser workflow (#47)
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
2023-02-16 20:22:54 +01:00
Jeroen Op 't Eynde
cf4ff4b950
feat: add enums to args (#45) 2023-02-16 19:57:15 +01:00
Jeroen Op 't Eynde
5e45c19fbe
feat: add newSub (#44) 2023-02-16 19:56:58 +01:00
Matthias Riegler
b5a6b0e838
fix: increase goreleaser permissions (#46)
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
2023-02-16 17:58:53 +01:00
Matthias Riegler
b2e9d3bb12
chore/fix: switch release pipeline to goreleaser & ghcr.io (#43)
* chore: add goreleaser config + adapt Dockerfile
* chore: cleanup makefile and deprecated pipeline
* chore: go mod tidy -go=1.19
* feat: add release pipeline

---------

Signed-off-by: Matthias Riegler <me@xvzf.tech>
2023-02-16 09:38:05 +01:00
Matthias Riegler
01f689fb4a
Revert "chore/fix: switch release pipeline to goreleaser & ghcr.io (#40)" (#42)
This reverts commit b56a421ef2.
2023-01-28 21:42:36 +01:00
Matthias Riegler
b56a421ef2
chore/fix: switch release pipeline to goreleaser & ghcr.io (#40)
* chore: add goreleaser config + adapt Dockerfile

Signed-off-by: Matthias Riegler <me@xvzf.tech>

* chore: cleanup makefile and deprecated pipeline

Signed-off-by: Matthias Riegler <me@xvzf.tech>

* chore: go mod tidy -go=1.19

Signed-off-by: Matthias Riegler <me@xvzf.tech>

---------

Signed-off-by: Matthias Riegler <me@xvzf.tech>
2023-01-28 21:41:50 +01:00
malcolmholmes
37dd4fbc10
Remove duplicated path (#41) 2023-01-19 20:25:26 +00:00
Jeroen Op 't Eynde
e7f3020f57
fix(doc-util): ensure indexes get path prefixes (#36) 2022-10-25 15:36:32 +02:00
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