dat-ecosystem-archive / datproject-discussions

a repo for discussions and other non-code organizing stuff [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
65 stars 6 forks source link

Auto-generate protocol documentation from inline comments in schema.proto #66

Open aschrijver opened 6 years ago

aschrijver commented 6 years ago

For my message layer research wrt hypercore-protocol I was referred to the dat network protocol specification.

However, I found README docs to be outdated when looking at current schema.proto To avoid this, now and forever, you could auto-generate the documentation from inline documentation in the .proto file(s) itself.

For example with protoc-gen-doc from this:

You'd get outputs like this:

Benefits:

aschrijver commented 6 years ago

Demonstration + documentation of auto-generation options using TravisCI

aschrijver commented 6 years ago

Status: The owner of protoc-gen-doc has completely rewritten the project to Go and using docker. I am working with him to get the issues out of it and create nice markdown documentation layout.