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">
|
<div class="content">
|
||||||
{$ doc.description | marked $}
|
{$ doc.description | marked $}
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,4 +23,5 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% endblock %}
|
||||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue