Skip to content

Commit

Permalink
Fix template documentation to avoid breaking layout (#135)
Browse files Browse the repository at this point in the history
Merged PR #135.
  • Loading branch information
rosbo authored and modular-magician committed Apr 30, 2018
1 parent 3442a72 commit bda2371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/terraform
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 bda2371

Please sign in to comment.