build(docs-infra): show github edit link on CLI overview (#26515)
PR Close #26515
This commit is contained in:
parent
aa55d88408
commit
9e8903ada1
|
@ -1,3 +1,6 @@
|
|||
{% extends 'content.template.html' -%}
|
||||
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
{$ doc.description | marked $}
|
||||
</div>
|
||||
|
@ -20,4 +23,5 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
|
|
@ -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 %}
|
||||
<div class="github-links">
|
||||
{$ github.githubEditLink(doc, versionInfo) $}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
<div class="content">
|
||||
{$ doc.description | marked $}
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue