dules/docs/doc/comments" . }}

{{- define "walk-docs-section-tree" }}
  {{- $weighted := sort (where .Pages "Params.nav_weight" ">" 0) "Params.nav_weight" }}
  {{- $pages := union $weighted (sort .Pages "Title") }}
  {{- range $pages }}
    {{- if .IsSection }}
      <li class="mb-2">
        <a href="{{ .RelPermalink }}">{{ .Title }}</a>
        <ul class="list-unstyled ps-4 mt-2">
          {{ template "walk-docs-section-tree" . }}
        </ul>
      </li>
    {{- else }}
      <li class="mb-2">
        