twirp-doc-gen

module
v0.0.0-...-8c4cf57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: Apache-2.0

README

Twirp Markdown Documentation Generator

A Twirp Markdown documentation generator implemented as protoc plugin

Plugin generated one <RPCServiceName>.md file per rpc service.

Usage

Installing the generator for protoc or buf.build:

go install github.com/albenik/twirp-doc-gen/cmd/protoc-gen-twirp-doc@latest

Run whith the protoc

protoc -twirp-doc_out=path/to/doc/folder -twirp-doc_opt=paths=source_relative twirp/service/v1/service.proto

Run with buf.build:

buf.gen.yaml:

version: v1
plugins:
  - name: twirp-doc
    out: path/to/doc/folder
    opt: paths=source_relative

Directories

Path Synopsis
cmd
internal
doc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL