Create comprehensive html documentation from your grpc/protobuf files.
grpcdoc
is a command line tool written in golang which takes grpc/protobuf files and generates a comprehensive html documentation for it.
brew tap ScaleableWebWorks/grpcdoc
brew install grpcdoc
- Go to releases
- Download the latest version for your operating system
- Unzip the file
- Move the binary to a location in your path
- Run
grpcdoc
in your terminal
Create a documentation for a single file
grpcdoc -out doc.html ./path/to/your/file.proto
Create a documentation for multiple files
grpcdoc -out doc.html ./path/to/your/file1.proto ./path/to/your/file2.proto
Read all .proto files from a directory
grpcdoc -out doc.html ./path/to/your/protos
Create a documentation for multiple files and include a custom css file
grpcdoc -out doc.html -style custom.css ./path/to/your/file1.proto
Read proto file from stdin
cat ../examples/example.proto | grpcdoc > doc.html
Generate and serve documentation on localhost:8000
grpcdoc -http=:8000 ./path/to/your/file.proto
For more examples and usage, please refer to the Wiki.
To start development you need to have golang installed on your system.
git clone https://github.com/ScaleableWebWorks/grpcdoc.git
cd grpcdoc
go get
go build
- 0.0.1
- Initial version Work in progress
Marco Rico – @mricog – marco@scaleablewebworks.com
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/ScaleableWebWorks
- Fork it (https://github.com/ScaleableWebWorks/grpcdoc/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request