From 2d2f8250357f47e0f44d6b2e6b6fcf5ed398f998 Mon Sep 17 00:00:00 2001 From: Jeff Malnick Date: Mon, 21 Jun 2021 09:27:41 -0700 Subject: [PATCH] build: add Makefile target for auto-generating docs --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1a096f25..12e7e8e2 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,10 @@ all: GOOS=windows go build -o $(BUILD_ALL_PATH)/terraform-provider-boundary_windows-amd64 main.go GOOS=linux go build -o $(BUILD_ALL_PATH)/terraform-provider-boundary_linux-amd64 main.go +docs: + go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs + rm-id-flag-from-docs: find docs/ -name "*.md" -type f | xargs sed -i -e '/- \*\*id\*\*/d' -.PHONY: testacc tools +.PHONY: testacc tools docs