Skip to content

Commit

Permalink
Link nested types in resource documentation pages (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc authored Sep 13, 2021
1 parent e0ffdb8 commit 21d9f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mmv1/templates/terraform/nested_property_documentation.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%
elsif property.nested_properties?
-%>
The `<%= property.name.underscore -%>` block <%= if property.output then "contains" else "supports" end -%>:
<a name="nested_<%= property.name.underscore -%>"></a>The `<%= property.name.underscore -%>` block <%= if property.output then "contains" else "supports" end -%>:
<%- if property.is_a?(Api::Type::Map) %>
* `<%= property.key_name.underscore -%>` - (Required) The identifier for this object. Format specified above.
<% end -%>
Expand Down
2 changes: 1 addition & 1 deletion mmv1/templates/terraform/property_documentation.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
**Note**: This property is sensitive and will not be displayed in the plan.
<% end -%>
<% if property.is_a?(Api::Type::NestedObject) || property.is_a?(Api::Type::Map) || (property.is_a?(Api::Type::Array) && property.item_type.is_a?(Api::Type::NestedObject)) -%>
Structure is documented below.
Structure is [documented below](#nested_<%= property.name.underscore -%>).
<% end -%>

0 comments on commit 21d9f76

Please sign in to comment.