protoc-gen-hugodata

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package protoc-gen-hugodata contains a protoc plugin and a Hugo module for building documentation for your protos.

Command protoc-gen-hugodata is the protoc plugin that generates yaml files that can be used by the shortcodes in this Hugo module.

Typical usage of the protoc plugin:

protoc -I [your imports ...] --hugodata_out=output_path=path/to/data:path/to/data /path/to/*.proto

To use this as a Hugo module, add the following to your config.toml:

[module]
  [[module.imports]]
    path = "htdvisser.dev/exp/protoc-gen-hugodata"

And then run:

hugo mod get htdvisser.dev/exp/protoc-gen-hugodata

After this, you can use the shortcodes in your markdown files:

{{< proto/method package="your.proto.v1" service="ServiceName" method="MethodName" >}}
{{< proto/message package="your.proto.v1" message="ServiceMethodRequest" >}}
{{< proto/enum package="your.proto.v1" enum="EnumName" >}}

Jump to

Keyboard shortcuts

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