From 6d4ed8297256a45e0c1ae68835dfca3a56a44b33 Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Mon, 30 Apr 2018 13:51:08 -0700 Subject: [PATCH] Fix template documentation to avoid breaking layout --- templates/terraform/resource.html.markdown.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/terraform/resource.html.markdown.erb b/templates/terraform/resource.html.markdown.erb index 69666b48a9e2..768711887060 100644 --- a/templates/terraform/resource.html.markdown.erb +++ b/templates/terraform/resource.html.markdown.erb @@ -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("_", "\\_") %>