Skip to content

Commit 64fa2bf

Browse files
committed
fix: Small readme
1 parent 10e0d27 commit 64fa2bf

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ schema:
3535
@go run ./bundle/internal/schema ./bundle/internal/schema ./bundle/schema/jsonschema.json
3636

3737
docs:
38-
@echo "✓ Generating docs ..."
38+
@echo "✓ Generating docs using ./bundle/internal/schema/annotations.yml file..."
3939
@go run ./bundle/internal/docs ./bundle/internal/schema ./bundle/internal/docs/docs.md
40+
@echo "✓ Writing docs to ./bundle/internal/docs/docs.md"
4041

4142
INTEGRATION = gotestsum --format github-actions --rerun-fails --jsonfile output.json --packages "./integration/..." -- -parallel 4 -timeout=2h
4243

bundle/internal/docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## docs-autogen
2+
3+
1. Install [Golang](https://go.dev/doc/install)
4+
2. Run `go mod download` from the repo root
5+
3. Run `make docs` from the repo
6+
4. See generated document in `./bundle/internal/docs/docs.md`
7+
5. To change descriptions update content in `./bundle/internal/schema/annotations.yml` and re-run `make docs`

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ require (
3333
gopkg.in/yaml.v3 v3.0.1
3434
)
3535

36+
require github.com/nao1215/markdown v0.6.0
37+
3638
require (
3739
cloud.google.com/go/auth v0.4.2 // indirect
3840
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
@@ -56,10 +58,8 @@ require (
5658
github.com/karrick/godirwalk v1.17.0 // indirect
5759
github.com/mattn/go-colorable v0.1.13 // indirect
5860
github.com/mattn/go-runewidth v0.0.9 // indirect
59-
github.com/nao1215/markdown v0.6.0 // indirect
6061
github.com/olekukonko/tablewriter v0.0.5 // indirect
6162
github.com/pmezard/go-difflib v1.0.0 // indirect
62-
github.com/radovskyb/watcher v1.0.7 // indirect
6363
github.com/stretchr/objx v0.5.2 // indirect
6464
github.com/zclconf/go-cty v1.15.0 // indirect
6565
go.opencensus.io v0.24.0 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)