File: path-item.html

package info (click to toggle)
mkdocstrings-python-handlers 1.16.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,228 kB
  • sloc: python: 3,496; javascript: 84; makefile: 37; sh: 17
file content (22 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{# Fix breadcrumbs for when mkdocs-section-index is used. #}
{# See https://github.com/squidfunk/mkdocs-material/issues/7614. #}

<!-- Render navigation link content -->
{% macro render_content(nav_item) %}
  <span class="md-ellipsis">
    {{ nav_item.title }}
  </span>
{% endmacro %}

<!-- Render navigation item -->
{% macro render(nav_item, ref=nav_item) %}
  {% if nav_item.is_page %}
    <li class="md-path__item">
      <a href="{{ nav_item.url | url }}" class="md-path__link">
        {{ render_content(ref) }}
      </a>
    </li>
  {% elif nav_item.children %}
    {{ render(nav_item.children | first, ref) }}
  {% endif %}
{% endmacro %}