mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts: use latest protodoc to skip grpc-gateway
protodoc now skips grpc-gateway options
This commit is contained in:
parent
1c6070ccc7
commit
d26d006fd6
@ -81,7 +81,7 @@ protoc -I. \
|
|||||||
if [ "$1" = "-g" ]; then
|
if [ "$1" = "-g" ]; then
|
||||||
echo "protodoc is auto-generating grpc API reference documentation..."
|
echo "protodoc is auto-generating grpc API reference documentation..."
|
||||||
go get -v -u github.com/coreos/protodoc
|
go get -v -u github.com/coreos/protodoc
|
||||||
SHA_PROTODOC="150f6f93d89aedb208f443d38f50bb03abbc9290"
|
SHA_PROTODOC="f4164b1cce80b5eba4c835d08483f552dc568b7c"
|
||||||
PROTODOC_PATH="${GOPATH}/src/github.com/coreos/protodoc"
|
PROTODOC_PATH="${GOPATH}/src/github.com/coreos/protodoc"
|
||||||
pushd "${PROTODOC_PATH}"
|
pushd "${PROTODOC_PATH}"
|
||||||
git reset --hard "${SHA_PROTODOC}"
|
git reset --hard "${SHA_PROTODOC}"
|
||||||
@ -92,7 +92,8 @@ if [ "$1" = "-g" ]; then
|
|||||||
protodoc --directories="etcdserver/etcdserverpb=service_message,mvcc/mvccpb=service_message,lease/leasepb=service_message,auth/authpb=service_message" \
|
protodoc --directories="etcdserver/etcdserverpb=service_message,mvcc/mvccpb=service_message,lease/leasepb=service_message,auth/authpb=service_message" \
|
||||||
--title="etcd API Reference" \
|
--title="etcd API Reference" \
|
||||||
--output="Documentation/dev-guide/api_reference_v3.md" \
|
--output="Documentation/dev-guide/api_reference_v3.md" \
|
||||||
--message-only-from-this-file="etcdserver/etcdserverpb/rpc.proto"
|
--message-only-from-this-file="etcdserver/etcdserverpb/rpc.proto" \
|
||||||
|
--disclaimer="This is a generated documentation. Please read the proto files for more."
|
||||||
|
|
||||||
echo "protodoc is finished..."
|
echo "protodoc is finished..."
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user