{{- define "depRow" -}}
{{- range $i, $dep := . }}
| link:{{ $dep.URL }}[$${{ $dep.Name }}$$] | {{ $dep.Version }} | {{ $dep.LicenceType }}
{{- end }}
{{- end -}}
// Generated documentation. Please do not edit.
:page_id: dependencies

[id="{p}-{page_id}"]
= Third-party dependencies

This page lists the third-party dependencies used to build {n}.

[float]
[id="{p}-dependencies-direct"]
== Direct dependencies

[options="header"]
|===
| Name | Version | Licence
{{ template "depRow" .Direct  }}
|===

{{ if .Indirect }}
[float]
[id="{p}-dependencies-indirect"]
== Indirect dependencies

[options="header"]
|===
| Name | Version | Licence
{{ template "depRow" .Indirect  }}
|===
{{ end }}
