Skip to content

Commit e939df9

Browse files
committed
docs(proto): generate proto-docs
Signed-off-by: Artur Troian <[email protected]>
1 parent 06a3a62 commit e939df9

File tree

12 files changed

+9596
-6
lines changed

12 files changed

+9596
-6
lines changed

.github/labeler.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
"Type: CI":
3131
- changed-files:
3232
- any-glob-to-any-file: .github/**/*
33+
"Typ: Docs":
34+
- changed-files:
35+
- any-glob-to-any-file: docs/**/*

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ endif
2727
GO := GO111MODULE=$(GO111MODULE) go
2828
GO_MOD_NAME := $(shell go list -m 2>/dev/null)
2929

30-
BUF_VERSION ?= 1.27.2
30+
BUF_VERSION ?= 1.28.1
3131
PROTOC_VERSION ?= 21.12
3232
GOGOPROTO_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' github.com/cosmos/gogoproto)
3333
# TODO https://github.com/akash-network/support/issues/77
3434
PROTOC_GEN_GOCOSMOS_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' github.com/regen-network/cosmos-proto)
3535
PROTOC_GEN_GO_PULSAR_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' github.com/cosmos/cosmos-proto)
3636
PROTOC_GEN_GO_VERSION ?= $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' google.golang.org/protobuf)
3737
PROTOC_GEN_GRPC_GATEWAY_VERSION := $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' github.com/grpc-ecosystem/grpc-gateway)
38+
PROTOC_GEN_DOC_VERSION := $(shell $(GO) list -mod=readonly -m -f '{{ .Version }}' github.com/pseudomuto/protoc-gen-doc)
39+
3840
PROTOC_GEN_SWAGGER_VERSION := $(PROTOC_GEN_GRPC_GATEWAY_VERSION)
3941
MODVENDOR_VERSION ?= v0.5.0
4042

@@ -46,6 +48,7 @@ PROTOC_GEN_GO_PULSAR_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/protoc-gen-go
4648
PROTOC_GEN_GO_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/protoc-gen-go/$(PROTOC_GEN_GO_VERSION)
4749
PROTOC_GEN_GRPC_GATEWAY_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/protoc-gen-grpc-gateway/$(PROTOC_GEN_GRPC_GATEWAY_VERSION)
4850
PROTOC_GEN_SWAGGER_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/protoc-gen-swagger/$(PROTOC_GEN_SWAGGER_VERSION)
51+
PROTOC_GEN_DOC_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/protoc-gen-doc/$(PROTOC_GEN_DOC_VERSION)
4952
MODVENDOR_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/modvendor/$(MODVENDOR_VERSION)
5053
GIT_CHGLOG_VERSION_FILE := $(AKASH_DEVCACHE_VERSIONS)/git-chglog/$(GIT_CHGLOG_VERSION)
5154

@@ -57,6 +60,7 @@ PROTOC_GEN_GO_PULSAR := $(AKASH_DEVCACHE_BIN)/protoc-gen-go-pulsar
5760
PROTOC_GEN_GO := $(AKASH_DEVCACHE_BIN)/protoc-gen-go
5861
PROTOC_GEN_GRPC_GATEWAY := $(AKASH_DEVCACHE_BIN)/protoc-gen-grpc-gateway
5962
PROTOC_GEN_SWAGGER := $(AKASH_DEVCACHE_BIN)/protoc-gen-swagger
63+
PROTOC_GEN_DOC := $(AKASH_DEVCACHE_BIN)/protoc-gen-doc
6064
MODVENDOR := $(AKASH_DEVCACHE_BIN)/modvendor
6165
GIT_CHGLOG := $(AKASH_DEVCACHE_BIN)/git-chglog
6266
SWAGGER_COMBINE := $(AKASH_DEVCACHE_NODE_BIN)/swagger-combine

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ and [Akash provider](https://github.com/akash-network/provider) in a single plac
1010
There are currently defined two buf packages with further intentions to be published into BSR if there is demand for it:
1111
- `buf.build/akash-network/node` - Akash protobuf definitions previously located in [proto](https://github.com/akash-network/node/tree/master/proto/akash)
1212
have all been moved [under](./proto/node/akash). All generated code can be found [here](./go/node)
13-
- `buf.build/akash-network/manifest` - Akash manifest definitions previously defined as plan Go structs have been converted into Protobuf [definitions](./proto/provider/akash)
13+
- `buf.build/akash-network/provider` - Akash manifest definitions previously defined as plan Go structs have been converted into Protobuf [definitions](./proto/provider/akash)
14+
15+
Proto docs are available:
16+
- for [node](docs/proto/node/proto-docs.md)
17+
- for [provider](docs/proto/provider/proto-docs.md)
1418

1519
## Contributing
1620

docs/proto/node/proto-docs.md

+8,628
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)