build(aio): fix API docs breadcrumbs (#22446)
This also prevents some extra `<a>` elements inserted by the browser's trying to fix the HTML structure, which also fixes the `.header-link` added in ToC. Fixes #22387 Closes #22437 PR Close #22446
This commit is contained in:
parent
4bd3e5f92f
commit
d100f1b187
|
@ -22,7 +22,7 @@
|
|||
</script>
|
||||
{% for crumb in doc.breadCrumbs %}{% if not loop.last %}
|
||||
{$ slash() $}
|
||||
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}<a>{% else %}{$ crumb.text $}{% endif %}
|
||||
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}</a>{% else %}{$ crumb.text $}{% endif %}
|
||||
{% endif %}{% endfor %}
|
||||
</div>
|
||||
<header class="api-header">
|
||||
|
@ -43,4 +43,4 @@
|
|||
<div class="api-body">
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
</article>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue