From 9e8903ada1ff8bf74460ed2444f6215bc6dda56b Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 17 Oct 2018 13:49:28 +0100 Subject: [PATCH] build(docs-infra): show github edit link on CLI overview (#26515) PR Close #26515 --- .../transforms/templates/cli/cli-container.template.html | 6 +++++- aio/tools/transforms/templates/content.template.html | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/aio/tools/transforms/templates/cli/cli-container.template.html b/aio/tools/transforms/templates/cli/cli-container.template.html index b9bf21596a..654ba52903 100644 --- a/aio/tools/transforms/templates/cli/cli-container.template.html +++ b/aio/tools/transforms/templates/cli/cli-container.template.html @@ -1,3 +1,6 @@ +{% extends 'content.template.html' -%} + +{% block content %}
{$ doc.description | marked $}
@@ -20,4 +23,5 @@ {% endfor %} - \ No newline at end of file + +{% endblock %} diff --git a/aio/tools/transforms/templates/content.template.html b/aio/tools/transforms/templates/content.template.html index b610eb43e1..58d0baf52d 100644 --- a/aio/tools/transforms/templates/content.template.html +++ b/aio/tools/transforms/templates/content.template.html @@ -2,11 +2,13 @@ {% 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 %} +{% if '/' in relativePath or 'docs.md' in relativePath %} {% endif %} +{% block content %}
{$ doc.description | marked $}
+{% endblock %} \ No newline at end of file