Skip to content

Commit

Permalink
Fixup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Jan 12, 2024
1 parent 21ab8f7 commit ebca80c
Show file tree
Hide file tree
Showing 61 changed files with 888 additions and 138 deletions.
29 changes: 19 additions & 10 deletions provider/cmd/pulumi-resource-aws/schema.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion provider/doc_edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ func applyReplacementsDotJSON() tfbridge.DocsEdit {
if !ok {
return content, nil
}
applied++
for _, r := range replacementPath {
// If no-one has fixed up the TODO, don't replace it. That way the
// text will show up as elided instead of including the TODO in
Expand All @@ -143,6 +142,7 @@ func applyReplacementsDotJSON() tfbridge.DocsEdit {

old, new := []byte(r.Old), []byte(r.New)

applied++
content = bytes.ReplaceAll(content, old, new)
}

Expand Down Expand Up @@ -186,6 +186,13 @@ func (r replacementFile) checkForTODOs(path string, content []byte) {
start, end = findLine(content, m[0])
line := string(content[start:end])

// Do not add duplicate replacements to requirements.json
for _, replacement := range r[path] {
if replacement.Old == line {
continue
}
}

r[path] = append(r[path], replacement{
Old: line,
New: elidedText.ReplaceAllLiteralString(line, "TODO"),
Expand Down
118 changes: 21 additions & 97 deletions provider/replacements.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions sdk/dotnet/Ec2/Inputs/SecurityGroupEgressArgs.cs

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

3 changes: 3 additions & 0 deletions sdk/dotnet/Ec2/Inputs/SecurityGroupEgressGetArgs.cs

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

7 changes: 7 additions & 0 deletions sdk/dotnet/Ec2/Inputs/SecurityGroupIngressArgs.cs

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

7 changes: 7 additions & 0 deletions sdk/dotnet/Ec2/Inputs/SecurityGroupIngressGetArgs.cs

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

3 changes: 3 additions & 0 deletions sdk/dotnet/Ec2/Outputs/SecurityGroupEgress.cs

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

7 changes: 7 additions & 0 deletions sdk/dotnet/Ec2/Outputs/SecurityGroupIngress.cs

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading

0 comments on commit ebca80c

Please sign in to comment.