build(docs-infra): show github edit link on CLI overview (#26515)

PR Close #26515
This commit is contained in:
Pete Bacon Darwin 2018-10-17 13:49:28 +01:00 committed by Alex Rickabaugh
parent aa55d88408
commit 9e8903ada1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
{% extends 'content.template.html' -%}
{% block content %}
<div class="content"> <div class="content">
{$ doc.description | marked $} {$ doc.description | marked $}
</div> </div>
@ -21,3 +24,4 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% endblock %}

View File

@ -2,11 +2,13 @@
{% set relativePath = doc.fileInfo.relativePath %} {% set relativePath = doc.fileInfo.relativePath %}
{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %} {% 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 %}
<div class="github-links"> <div class="github-links">
{$ github.githubEditLink(doc, versionInfo) $} {$ github.githubEditLink(doc, versionInfo) $}
</div> </div>
{% endif %} {% endif %}
{% block content %}
<div class="content"> <div class="content">
{$ doc.description | marked $} {$ doc.description | marked $}
</div> </div>
{% endblock %}