-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update install script, add gradle task to generate proto docs
- Loading branch information
1 parent
4e16aa4
commit 1eef697
Showing
4 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
io.deephaven.project.ProjectType=DOCKER_REGISTRY | ||
deephaven.registry.imageName=ghcr.io/deephaven/protoc-base:latest | ||
deephaven.registry.imageId=ghcr.io/deephaven/protoc-base@sha256:70f31806515b4d160ab6ddf9b7b6612441b5918b0f1c5586ee2cc9ad8a4c81da | ||
deephaven.registry.imageId=ghcr.io/deephaven/protoc-base@sha256:7b43037ce0cf2a82aff73605a689754620791238ed598b7ae41aa5b225a27ccf | ||
# TODO(deephaven-base-images#54): arm64 native image for cpp-client-base | ||
deephaven.registry.platform=linux/amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# This script generates documentation for all .proto files in the /protos directory | ||
|
||
# Find all .proto files in the /protos directory | ||
for proto_file in `find /protos/ -name \*.proto`; do | ||
# Extract the base name of the .proto file (e.g., myfile.proto -> myfile) | ||
base_name=$(basename "$proto_file" .proto) | ||
|
||
# Generate documentation for each .proto file | ||
protoc \ | ||
-I/usr/include -I/protos \ | ||
--doc_out=/out --doc_opt=markdown,"${base_name}.md" \ | ||
"$proto_file" | ||
# Generate documentation for each .proto file | ||
/opt/protoc/bin/protoc \ | ||
--plugin=protoc-gen-doc=/usr/local/bin/protoc-gen-doc \ | ||
-I/usr/include -I/protos \ | ||
--doc_out=/docs/out --doc_opt=markdown,"${base_name}.md" \ | ||
"$proto_file" | ||
done |