From 6693f6b3c402f6c1c6d2c4a078b81bfc46bc0d08 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Sun, 7 Jan 2024 19:04:52 -0500 Subject: [PATCH] docs: generate proto docs into same dir (#105) Signed-off-by: Artur Troian --- README.md | 4 ++-- script/protocgen-legacy.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5b398b9f..d15271e5 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ have all been moved [under](./proto/node/akash). All generated code can be found - `buf.build/akash-network/provider` - Akash manifest definitions previously defined as plan Go structs have been converted into Protobuf [definitions](./proto/provider/akash) Proto docs are available: -- for [node](docs/proto/node/proto-docs.md) -- for [provider](docs/proto/provider/proto-docs.md) +- for [node](docs/proto/node.md) +- for [provider](docs/proto/provider.md) ## Contributing diff --git a/script/protocgen-legacy.sh b/script/protocgen-legacy.sh index f34cfac9..955e61d5 100755 --- a/script/protocgen-legacy.sh +++ b/script/protocgen-legacy.sh @@ -37,8 +37,8 @@ done -I "proto/node" \ -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ - --doc_out=./docs/proto/node \ - --doc_opt=./docs/protodoc-markdown.tmpl,proto-docs.md \ + --doc_out=./docs/proto \ + --doc_opt=./docs/protodoc-markdown.tmpl,node.md \ $(find "./proto/node" -maxdepth 4 -name '*.proto') proto_dirs=$(find ./proto/provider -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) @@ -61,8 +61,8 @@ done -I "vendor/github.com/cosmos/cosmos-sdk/proto" \ -I "vendor/github.com/cosmos/cosmos-sdk/third_party/proto" \ -I "vendor" \ - --doc_out=./docs/proto/provider \ - --doc_opt=./docs/protodoc-markdown.tmpl,proto-docs.md \ + --doc_out=./docs/proto \ + --doc_opt=./docs/protodoc-markdown.tmpl,provider.md \ $(find "./proto/provider" -maxdepth 4 -name '*.proto') # move proto files to the right places