docs: don't render full paths in reference toc

This commit is contained in:
phaer 2024-06-18 13:01:19 +02:00
parent eeb48666ca
commit 5f3051487a

View File

@ -29,7 +29,11 @@
{%- endif %}
<a href="{{ toc_item.url }}" class="md-nav__link">
<span class="md-ellipsis">
{%- if page.url.split("/")[-3] == "reference" -%}
{{ toc_item.title.split(".")[-1] }}
{%- else -%}
{{ toc_item.title }}
{%- endif -%}
</span>
</a>
{% if should_collapse -%}