File: toc.html

package info (click to toggle)
python-mkdocs 1.4.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,640 kB
  • sloc: python: 12,310; javascript: 2,315; perl: 142; sh: 84; makefile: 24; xml: 12
file content (12 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12

{%- for toc_item in toc_item.children %}
    <li class="toctree-l{{ navlevel}}"><a class="reference internal" href="{% if not nav_item == page %}{{ nav_item.url|url }}{% endif %}{{ toc_item.url }}">{{ toc_item.title }}</a>
    {%- set navlevel = navlevel + 1 %}
    {%- if navlevel <= config.theme.navigation_depth and toc_item.children %}
        <ul>
            {%- include 'toc.html' %}
        </ul>
    {%- endif %}
    {%- set navlevel = navlevel - 1 %}
    </li>
{%- endfor %}