From bad4ee14ed58a7febc32b334e17f97d144e797c8 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 18 Mar 2021 10:56:42 +0000 Subject: [PATCH] fix docs builds for helloworld and streams --- helloworld/Makefile | 6 +++--- streams/Makefile | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/helloworld/Makefile b/helloworld/Makefile index e2847e6..207b7d4 100644 --- a/helloworld/Makefile +++ b/helloworld/Makefile @@ -4,12 +4,12 @@ GOPATH:=$(shell go env GOPATH) .PHONY: proto proto: - protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld/helloworld.proto + protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto .PHONY: docs docs: - protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld/helloworld.proto - @redoc-cli bundle api-protobuf.json + protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto + @redoc-cli bundle api-helloworld.json .PHONY: build build: proto diff --git a/streams/Makefile b/streams/Makefile index b9a9ab8..2bc2101 100644 --- a/streams/Makefile +++ b/streams/Makefile @@ -13,6 +13,11 @@ proto: build: go build -o streams *.go +.PHONY: docs +docs: + protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/streams.proto + @redoc-cli bundle api-streams.json + .PHONY: test test: go test -v ./... -cover