Simple container to generate documentation from .proto files.
2.3K
Simple container to generate documentation from .proto files.
Suppose you have your proto files in ~/proto and you want to generate HTML documentation:
docker run --rm -v $HOME/proto:/src -v $HOME/docs:/docs bbrodriges/protoc-gen-doc sh -c "protoc --doc_out=html,index.html:/docs *.proto"
Running above command will create folder named docs and put index.html file into it.
See https://github.com/pseudomuto/protoc-gen-doc#invoking-the-plugin
Inspired by https://github.com/sashabaranov/protoc-gen-doc/blob/master/Dockerfile
Content type
Image
Digest
Size
82.4 MB
Last updated
about 7 years ago
docker pull bbrodriges/protoc-gen-doc