summaryrefslogtreecommitdiffstats
path: root/docs/theme/TocPage.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'docs/theme/TocPage.jinja')
-rw-r--r--docs/theme/TocPage.jinja21
1 files changed, 0 insertions, 21 deletions
diff --git a/docs/theme/TocPage.jinja b/docs/theme/TocPage.jinja
deleted file mode 100644
index 754b624..0000000
--- a/docs/theme/TocPage.jinja
+++ /dev/null
@@ -1,21 +0,0 @@
-{#def page_toc, max_depth=3 #}
-
-{% macro render_sub_items(pages) %}
-{%- for section in pages %}
- <li class="indent-{{ section.level }}">
- <a href="#{{ section.id }}"><span>{{ section.name }}</span></a>
- </li>
- {% if section.level <= max_depth -%}
- {{ render_sub_items(section.children) }}
- {%- endif %}
-{%- endfor %}
-{% endmacro %}
-
-<ul {{ attrs.render(class="cd-toc-page", data_component="TocPage") }}>
-{%- for section in page_toc %}
- <li class="indent-{{ section.level }}">
- <a href="#{{ section.id }}"><span>{{ section.name }}</span></a>
- </li>
- {{ render_sub_items(section.children) }}
-{%- endfor %}
-</ul>