2022-08-29 02:04:47 -04:00
|
|
|
{{- $option := .Get 0 -}}
|
|
|
|
|
{{- $module := index (strings.Split $option ".") 0 -}}
|
|
|
|
|
|
2023-06-03 02:38:47 -04:00
|
|
|
{{/* some modules are nested under other modules */}}
|
|
|
|
|
{{- $submodule := index (strings.Split $option ".") 1 -}}
|
|
|
|
|
{{- if eq "helm" $submodule -}}
|
|
|
|
|
{{ $module = "helm"}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
2022-08-29 02:04:47 -04:00
|
|
|
{{/* should we use markdown instead of html? some envs strip raw html */}}
|
|
|
|
|
{{- $md := .Get 1 | default false -}}
|
|
|
|
|
|
|
|
|
|
{{- if $md -}}
|
|
|
|
|
[{{ $option }}](/modules/{{ $module }}/#{{ $option }})
|
|
|
|
|
{{- else -}}
|
|
|
|
|
<a href="/modules/{{ $module }}/#{{ $option }}">{{ $option }}</a>
|
2023-06-03 02:38:47 -04:00
|
|
|
{{- end -}}
|