This is a documentation generator plugin for the Google Protocol Buffers compiler (protoc). The plugin can generate HTML, JSON, DocBook, and Markdown documentation from comments in your .proto files. There is a Docker image available (docker pull pseudomuto/protoc-gen-doc) that has everything you need to generate documentation from your protos. The plugin is invoked by passing the --doc_out, and --doc_opt options to the protoc compiler. The docker image has two volumes: /out and /protos which are the directory to write the documentation to and the directory containing your proto files. By default HTML documentation is generated in /out/index.html for all .proto files in the /protos volume. This can be changed by passing the --doc_opt parameter to the container.

Features

  • Generates markdown documentation for message and service definitions in .proto files
  • Support for custom templates to control the output format
  • Support for generating documentation for multiple languages (e.g. Go, Java, C++, etc.)
  • Support for outputting to various file formats (e.g. markdown, HTML, etc.)
  • Support for including examples
  • Support for documenting extensions

Project Samples

Project Activity

See All Activity >

Categories

Documentation

License

MIT License

Follow protoc-gen-doc

protoc-gen-doc Web Site

Other Useful Business Software
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI Studio. Switch between models without switching platforms.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of protoc-gen-doc!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Documentation Software

Registered

2023-01-23