Skip to content

Commit

Permalink
Fix template documentation to avoid breaking layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rosbo committed Apr 30, 2018
1 parent 9442211 commit 6d4ed82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/terraform/resource.html.markdown.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
<% end -%>
<%= lines(autogen_notice :markdown) -%>
<%
api_name_lower = product_ns.downcase
resource_name = Google::StringUtils.underscore(object.name)
properties = effective_properties(object.all_user_properties)
-%>

---
<%= lines(autogen_notice :yaml) -%>
layout: "google"
page_title: "Google: google_<%= api_name_lower -%>_<%= resource_name -%>"
sidebar_current: "docs-google-<%= api_name_lower -%>-<%= resource_name.gsub("_", "-") -%>"
description: |-
<%= Google::StringUtils.first_sentence(object.description) %>
<%= indent(Google::StringUtils.first_sentence(object.description), 2) %>
---

# google\_<%= api_name_lower -%>\_<%= resource_name.gsub("_", "\\_") %>
Expand Down

0 comments on commit 6d4ed82

Please sign in to comment.