mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 07:35:11 +01:00
feat: containerize (#19)
* feat: containerize * Stripping reduces binary size, fully static linking makes the binary more portable Co-authored-by: sh0rez <me@shorez.de>
This commit is contained in:
parent
3e1757637e
commit
1f8d4c6fbf
11 changed files with 47 additions and 15 deletions
|
|
@ -96,7 +96,7 @@ func newImporter(paths []string) (*importer, error) {
|
|||
|
||||
var docUtilPaths = []string{
|
||||
"doc-util/main.libsonnet",
|
||||
"github.com/sh0rez/docsonnet/doc-util/main.libsonnet",
|
||||
"github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet",
|
||||
}
|
||||
|
||||
func (i *importer) Import(importedFrom, importedPath string) (contents jsonnet.Contents, foundAt string, err error) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/sh0rez/docsonnet/pkg/docsonnet"
|
||||
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
|
||||
)
|
||||
|
||||
func To(pkg docsonnet.Package, dir string, opts Opts) (int, error) {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/google/go-jsonnet/formatter"
|
||||
"github.com/sh0rez/docsonnet/pkg/docsonnet"
|
||||
"github.com/sh0rez/docsonnet/pkg/md"
|
||||
"github.com/sh0rez/docsonnet/pkg/slug"
|
||||
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
|
||||
"github.com/jsonnet-libs/docsonnet/pkg/md"
|
||||
"github.com/jsonnet-libs/docsonnet/pkg/slug"
|
||||
)
|
||||
|
||||
type Opts struct {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package render
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/sh0rez/docsonnet/pkg/docsonnet"
|
||||
"github.com/jsonnet-libs/docsonnet/pkg/docsonnet"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue