ARCHIVED, PLEASE USE https://github.com/terraform-docs/terraform-docs/tree/master/plugin INSTEAD, AND TAKE A LOOK AT https://terraform-docs.io/developer-guide/plugins/ FOR MORE EXAMPLE.
terraform-docs plugin SDK for building custom formatters.
Please refer to tfdocs-format-template for an example implementation of a formatter plugin with this SDK.