From 4b9ac51eb8f7779378456bd9f301fcbe00f94bdf Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Sun, 5 Mar 2023 10:23:51 -0500 Subject: [PATCH] WIP: use scraper prelude-xpath option for subcategory parsing in docs Signed-off-by: Marques Johansson --- apis/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/generate.go b/apis/generate.go index 1390cef..c95351b 100644 --- a/apis/generate.go +++ b/apis/generate.go @@ -31,7 +31,7 @@ limitations under the License. //go:generate rm -rf ../examples-generated // Generate documentation from Terraform docs. -//go:generate go run github.com/upbound/upjet/cmd/scraper -n ${TERRAFORM_PROVIDER_SOURCE} -r ../.work/${TERRAFORM_PROVIDER_SOURCE}/${TERRAFORM_DOCS_PATH} -o ../config/provider-metadata.yaml +//go:generate go run github.com/upbound/upjet/cmd/scraper -n ${TERRAFORM_PROVIDER_SOURCE} -r ../.work/${TERRAFORM_PROVIDER_SOURCE}/${TERRAFORM_DOCS_PATH} -o ../config/provider-metadata.yaml --prelude-xpath "//text()[contains(., \"subcategory\")]" // Run Upjet generator //go:generate go run ../cmd/generator/main.go ..