Skip to content

Hide duplicate examples #3146

@danielrbradley

Description

@danielrbradley

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

If two examples result in exactly the same code, we should remove the duplicate.

See pulumi/registry#8287 (review) for original user issue.

In the github provider, there's a duplicate example to demonstrate a syntax change in terraform between two versions, which for Pulumi has no impact, so they produce exactly the same example code.

https://github.com/integrations/terraform-provider-github/blob/9fceeda3663a1bcb48c01e51da109947be65896c/website/docs/index.html.markdown?plain=1#L19-L54

Affected area/feature

  • Docs generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsgenIssues with docs capture or example rendering, historically part of pkg/tfgenkind/enhancementImprovements or new features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions