Skip to content

Commit

Permalink
Documentation generated automatically from .proto files 🔥 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus authored Nov 1, 2021
1 parent fb5a760 commit 40e8725
Show file tree
Hide file tree
Showing 3 changed files with 1,613 additions and 0 deletions.
10 changes: 10 additions & 0 deletions devops/generate_proto_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ def update_java():
shutil.rmtree(join(java_proto_path, 'trinsic', 'okapi'))


def update_markdown():
lang_path = get_language_dir('docs')
lang_proto_path = join(lang_path, 'reference', 'proto')
# https://github.com/pseudomuto/protoc-gen-doc
# go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
# Add to path and rename to `protoc-gen-grpc-java`
run_protoc({'doc_out': lang_proto_path}, {'doc_opt': 'markdown,index.md'}, get_proto_files())


def update_python():
"""
Generate the protobuf interface files using the python library https://github.com/danielgtaylor/python-betterproto
Expand Down Expand Up @@ -111,6 +120,7 @@ def main():
update_ruby()
update_java()
update_python()
update_markdown()


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 40e8725

Please sign in to comment.