{{ define "bodyclass" }}page-spec{{ end }} {{ define "main" }} {{ $slug := .File.ContentBaseName }} {{ $kind := partialCached "spec/term.html" (dict "page" . "taxonomy" "kinds") .RelPermalink "kinds" }} {{ $domain := partialCached "spec/term.html" (dict "page" . "taxonomy" "domains") .RelPermalink "domains" }} {{ $groups := partialCached "spec/relations.html" . .RelPermalink }}
{{ partial "spec/plate.html" (dict "page" . "size" "lg") }}
{{ with $kind }} {{ .Title }} specification {{ end }}

{{ .Title }}

{{ .Description | markdownify }}

{{ with $kind }}
Kind
{{ .Title }}
{{ end }} {{ with $domain }}
Domain
{{ .Title }}
{{ end }} {{ with .Params.path }}
Applies at
{{ . }}
{{ end }}
Status
{{ .Params.status | default "draft" | humanize }}
{{ with .Params.source }}
Source{{ if $.Params.managed }} ยท managed{{ end }}
{{ . }}{{ partial "icons/external.html" }}
{{ end }}
{{ if or .Params.defines .Params.appliesWhen .Params.boundaries }}
{{ with .Params.defines }}

01 Defines

{{ . | $.RenderString (dict "display" "block") }}
{{ end }} {{ with .Params.appliesWhen }}

02 Applies when

    {{ range . }}
  • {{ . | $.RenderString }}
  • {{ end }}
{{ end }} {{ with .Params.boundaries }}

03 Boundaries

    {{ range . }}
  • {{ . | $.RenderString }}
  • {{ end }}
{{ end }}
{{ end }}
{{ with .Params.expectations }}

Expected behaviour

    {{ range $i, $e := . }}
  1. {{ printf "%02d" (add $i 1) }}
    {{ $e | $.RenderString }}
  2. {{ end }}
{{ end }}
{{ .Content }}
{{ with $groups }}

Connections

How {{ $.Title }} relates to the library

{{ partial "spec/neighbourhood.html" $ }}
{{ range site.Params.relations }}{{ .label }}{{ end }}
{{ end }} {{ with $domain }} {{ $siblings := where (partialCached "spec/all.html" "all") "Params.domains" "intersect" (slice .Data.Term) }} {{ $prev := false }}{{ $next := false }}{{ $found := false }} {{ range $siblings }} {{ if $found }}{{ if not $next }}{{ $next = . }}{{ end }}{{ end }} {{ if eq . $ }}{{ $found = true }}{{ end }} {{ if not $found }}{{ $prev = . }}{{ end }} {{ end }} {{ end }}
{{ end }}