fix(docs-infra): show "suggest edits" only for /guide and /tutorial dirs (#24378)
PR Close #24378
This commit is contained in:
parent
82088a8489
commit
66b7870da7
@ -1,9 +1,12 @@
|
|||||||
{% import "githubLinks.html" as github -%}
|
{% import "githubLinks.html" as github -%}
|
||||||
|
|
||||||
|
{% set relativePath = doc.fileInfo.relativePath %}
|
||||||
{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %}
|
{% if doc.title %}{$ ('# ' + doc.title.trim()) | marked $}{% endif %}
|
||||||
<div class="page-actions">
|
{% if 'guide/' in relativePath or 'tutorial/' in relativePath or 'docs.md' in relativePath %}
|
||||||
<a href="{$ github.githubEditHref(doc, versionInfo) $}" aria-label="Suggest Edits" title="Suggest Edits"><i class="material-icons" aria-hidden="true" role="img">mode_edit</i></a>
|
<div class="page-actions">
|
||||||
</div>
|
<a href="{$ github.githubEditHref(doc, versionInfo) $}" aria-label="Suggest Edits" title="Suggest Edits"><i class="material-icons" aria-hidden="true" role="img">mode_edit</i></a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{$ doc.description | marked $}
|
{$ doc.description | marked $}
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user