From 66b7870da7c466595de0c28b06f089b330e64b78 Mon Sep 17 00:00:00 2001 From: Martin Sikora Date: Fri, 8 Jun 2018 18:13:07 +0200 Subject: [PATCH] fix(docs-infra): show "suggest edits" only for /guide and /tutorial dirs (#24378) PR Close #24378 --- aio/tools/transforms/templates/content.template.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/aio/tools/transforms/templates/content.template.html b/aio/tools/transforms/templates/content.template.html index c02c83c481..d6681359ce 100644 --- a/aio/tools/transforms/templates/content.template.html +++ b/aio/tools/transforms/templates/content.template.html @@ -1,9 +1,12 @@ {% import "githubLinks.html" as github -%} +{% set relativePath = doc.fileInfo.relativePath %} {% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %} -
- -
+{% if 'guide/' in relativePath or 'tutorial/' in relativePath or 'docs.md' in relativePath %} +
+ +
+{% endif %}
{$ doc.description | marked $}
\ No newline at end of file