Skip to content

Commit

Permalink
WIP: use scraper prelude-xpath option for subcategory parsing in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Mar 5, 2023
1 parent 97eb823 commit 485bb86
Show file tree
Hide file tree
Showing 44 changed files with 3,513 additions and 491 deletions.
115 changes: 114 additions & 1 deletion apis/ecx/v1alpha1/zz_l2connection_types.go

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion apis/ecx/v1alpha1/zz_l2connectionaccepter_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 71 additions & 1 deletion apis/ecx/v1alpha1/zz_l2serviceprofile_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..
Expand Down
Loading

0 comments on commit 485bb86

Please sign in to comment.