2023-05-24 18:54:23 +02:00
|
|
|
<ul>
|
|
|
|
{%- if parent_href -%}
|
|
|
|
<li class="overview">
|
|
|
|
<a href="{{ parent_href }}" {% if url == parent_href %}class="selected"{% endif %}>Overview</a>
|
|
|
|
</li>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- for section in toc -%}
|
|
|
|
{%- assign link = section | getDocTocData -%}
|
|
|
|
{%- assign children = section[':children'] -%}
|
2023-05-25 18:39:08 +02:00
|
|
|
{%- assign is_open = url == '' and link.expanded -%}
|
2023-05-24 18:54:23 +02:00
|
|
|
<li>
|
2023-05-25 18:39:08 +02:00
|
|
|
<a href="{{ link.href }}" class="{% if children %}section {% endif %}{% if url | startsWith: link.href %}open selected{% elsif is_open %}open{% endif %}">{{ link.text }}</a>
|
2023-05-24 18:54:23 +02:00
|
|
|
{%- if children -%}
|
|
|
|
{% render 'documentation_toc', url: url, toc: children, parent_href: link.href %}
|
|
|
|
{%- endif -%}
|
|
|
|
</li>
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|