diff --git a/layouts/api/list.html b/layouts/api/list.html index cd73bc6..de08952 100644 --- a/layouts/api/list.html +++ b/layouts/api/list.html @@ -4,12 +4,23 @@ {{ with $.name }}
{{ . }}:
{{ end }} - arrayOf [ - {{ template "schema" . }} - ] + {{ if (eq $.kind "array") }} + arrayOf [ + {{ template "schema" . }} + ] + {{ end }} + {{ if (eq $.kind "dictionary") }} + dictionary +
+ < + + {{ $.key.name }}, {{ template "schema" . }}> +
+ {{ end }} {{ else }} {{ if (eq .name .kind) }} - {{ .kind }} + {{ .kind }} {{ else }} {{ with .name }}
@@ -20,7 +31,7 @@ {{ end }}:
{{ end }} - {{ .kind }} + {{ .kind }} {{ end }} {{ with .keys }} { diff --git a/themes/strimertul/assets/scss/api.scss b/themes/strimertul/assets/scss/api.scss index 908122f..747c995 100644 --- a/themes/strimertul/assets/scss/api.scss +++ b/themes/strimertul/assets/scss/api.scss @@ -78,6 +78,11 @@ .nameblock { display: none; } + .kind.array, + .kind.object, + .kind.dictionary { + color: $grass12; + } li { list-style-type: none; & > code > .nameblock { @@ -90,6 +95,15 @@ } } } + .dict { + display: inline; + .key { + display: inline; + } + .element { + display: inline; + } + } ul { padding: 0; margin: 0;