A tool for converting .proto files to markdown for Slate.
proto2slate
takes two arguments, a required path to a Protocol Buffers v3 definition file followed by an optional path to the output markdown file.
First install proto2slate
in your project.
npm install proto2slate
Then you can create an npm script to run the tool.
"scripts": {
"slate": "proto2slate service.proto service.md"
}
You can also install and run proto2slate
as a standalone tool.
npm install -g proto2slate
proto2slate /path/to/service.proto /path/to/service.md