From 5f3051487a86206f0704476bb08756b965c563b7 Mon Sep 17 00:00:00 2001 From: phaer Date: Tue, 18 Jun 2024 13:01:19 +0200 Subject: [PATCH] docs: don't render full paths in reference toc --- docs/theme/partials/toc-item.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/theme/partials/toc-item.html b/docs/theme/partials/toc-item.html index 34d3dfae..5af8905a 100644 --- a/docs/theme/partials/toc-item.html +++ b/docs/theme/partials/toc-item.html @@ -29,7 +29,11 @@ {%- endif %} + {%- if page.url.split("/")[-3] == "reference" -%} + {{ toc_item.title.split(".")[-1] }} + {%- else -%} {{ toc_item.title }} + {%- endif -%} {% if should_collapse -%}