2
1
Fork 0

initial commit

This commit is contained in:
outfoxxed 2024-02-12 04:07:01 -08:00
commit 27b3274027
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
25 changed files with 1696 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{{- $first := true -}}
{{- range $param, $type := . -}}
{{- if ne $first true -}}, {{ end -}}
{{- $first = false -}}
{{ $param }}: {{ partial "qmltype.html" $type }}
{{- end -}}

View file

@ -0,0 +1,17 @@
{{- if eq .type "unknown" -}}
unknown
{{- else -}}
{{- $link := "#ERROR" -}}
{{- if eq .type "qt" -}}
{{- $link = printf "https://doc.qt.io/qt-6/%s-%s.html" (lower (replace .module "." "-")) (lower .name) -}}
{{- else if eq .type "local" -}}
{{- $link = printf "/docs/types/%s/%s" (lower .module) (lower .name) -}}
{{- end -}}
{{- $of := "" -}}
{{- if .of -}}
{{- $of = printf "<%s>" (partial "qmltype.html" .of) }}
{{- end -}}
<a href="{{ $link }}">{{ .name }}</a>{{ $of | safeHTML -}}
{{- end -}}