Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'

This commit is contained in:
Bjørn Erik Pedersen
2023-10-20 09:43:56 +02:00
298 changed files with 4568 additions and 1991 deletions

View File

@@ -0,0 +1,12 @@
{{- with .Params.function.aliases }}
{{- $label := "Alias" }}
{{- if gt (len .) 1 }}
{{- $label = "Aliases" }}
{{- end }}
<h2 class="minor mb1 primary-color-dark">{{ $label }}</h2>
{{- range . }}
<pre class="f5 mb4 ph3 pv2 bg-light-gray" style="border-left:4px solid #0594CB;">
{{- . -}}
</pre>
{{- end }}
{{- end -}}

View File

@@ -0,0 +1,12 @@
{{- with .Params.function.signatures }}
<h2 class="minor mb1 pt4 primary-color-dark">Syntax</h2>
{{- range . }}
{{- $signature := . }}
{{- if $.Params.function.returnType }}
{{- $signature = printf "%s ⟼ %s" . $.Params.function.returnType }}
{{- end }}
<pre class="f5 mb4 ph3 pv2 bg-light-gray" style="border-left:4px solid #0594CB;">
{{- $signature -}}
</pre>
{{- end }}
{{- end -}}

View File

@@ -0,0 +1,17 @@
{{- $heading := "See also" }}
{{- $related := site.RegularPages.Related . | first 5 }}
{{- if eq .Type "functions" }}
{{- $heading = "Related functions" }}
{{- $opts := dict "document" . "indices" (slice "relatedFunctions") }}
{{- $related = site.RegularPages.Related $opts | first 7 }}
{{- end }}
{{- with $related }}
<h2>{{ $heading }}</h2>
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end }}
</ul>
{{- end }}