From 71cde6bf3faf32a34af104cba66bee906f34e3da Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 17 Mar 2025 15:33:21 +0100 Subject: [PATCH] Optimized headers --- sphinx/templates/structure.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/sphinx/templates/structure.html b/sphinx/templates/structure.html index 90fb7542..cfb74a9a 100644 --- a/sphinx/templates/structure.html +++ b/sphinx/templates/structure.html @@ -41,18 +41,23 @@ {% if local_md_headings or local_subfolders %}
-

Index

-

- Current Index -

{% if local_md_headings %} +
+

+ Current Index +

{{ render_headings(local_md_headings) }} +
+
{% endif %} -

- Full Index -

{% if local_subfolders %} +
+

+ Full Index +

{{ render_headings(local_subfolders) }} +
+
{% endif %}
{% endif %}