Skip to content

Commit

Permalink
Preview for bridge docs fixes from pulumi/pulumi-terraform-bridge#1798
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Mar 27, 2024
1 parent a9b3831 commit df3bcdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ popd

REGISTRY_COMMIT="$(git_sha_short)"
printf "Generating API docs from registry commit %s...\n\n" "${REGISTRY_COMMIT}"
resourcedocsgen docs registry --commitSha "${REGISTRY_COMMIT}" \
resourcedocsgen docs registry "aws" "${REGISTRY_COMMIT}" \
--baseDocsOutDir "themes/default/content/registry/packages" \
--basePackageTreeJSONOutDir "themes/default/static/registry/packages/navs" \
--logtostderr
Expand Down
4 changes: 2 additions & 2 deletions tools/resourcedocsgen/cmd/docs/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func genResourceDocsForPackageFromRegistryMetadata(metadata pkg.PackageMeta, doc
// We'll add in the URL format below. It's easier to read that way.
schemaFilePath = strings.TrimPrefix(schemaFilePath, "/")

repoSlug, err := getRepoSlug(metadata.RepoURL)
//repoSlug, err := getRepoSlug(metadata.RepoURL)

glog.Infoln("Reading remote schema file from VCS")
// TODO: Support raw URLs for other VCS too.
schemaFileURL := fmt.Sprintf("https://raw.githubusercontent.com/%s/%s/%s", repoSlug, metadata.Version, schemaFilePath)
schemaFileURL := fmt.Sprintf("https://raw.githubusercontent.com/pulumi/pulumi-aws/guin/fix-misaligned-attribute-content/provider/cmd/pulumi-resource-aws/schema.json")
resp, err := http.Get(schemaFileURL)
if err != nil {
return errors.Wrapf(err, "reading schema file from VCS %s", schemaFileURL)
Expand Down

0 comments on commit df3bcdc

Please sign in to comment.