{{ define "bodyclass" }}page-home{{ end }} {{ define "main" }} {{ $specs := partialCached "spec/all.html" "all" }} {{ $kinds := (site.GetPage "/kinds").Pages.ByWeight }} {{ $domains := (site.GetPage "/domains").Pages.ByWeight }} {{ $edges := 0 }} {{ range $specs }}{{ with .Params.relations }}{{ range $k, $v := . }}{{ $edges = add $edges (len $v) }}{{ end }}{{ end }}{{ end }}

{{ site.Params.wordmark }} / specifications

A pattern library for how the system behaves.

{{ .Description | default site.Params.description | markdownify }}

Browse the library {{ partial "icons/arrow.html" }}
Specifications
{{ len $specs }}
Kinds
{{ len $kinds }}
Domains
{{ len $domains }}
Relationships
{{ $edges }}

Five kinds

Every specification answers one question

The kind tells you what a specification is for before you open it.

{{ range $kinds }} {{ .Title }}{{ len .Pages }} {{ .Params.question }} {{ .Description }} {{ end }}

The repository, mapped

Every area of a repository has a specification

The layout below follows the code map. Choose an area to see the specification that defines it.

{{ range $i, $row := hugo.Data.layout }} {{ with site.GetPage (printf "/specs/%s" $row.spec) }}
{{ partial "spec/card.html" . }} {{ with .Params.defines }}

{{ . | markdownify }}

{{ end }}
{{ end }} {{ end }}
{{ with where $specs "Params.featured" true }}

Start here

{{ range . }}{{ partial "spec/card.html" . }}{{ end }}
{{ end }}

Domains

Browse by area of the repository

{{ range $domains }}

{{ .Title }}

{{ .Description }}

    {{ range .Pages.ByTitle }}
  • {{ partial "spec/chip.html" . }}
  • {{ end }}
{{ end }}
Atlas See the library as a connected graph {{ $edges }} typed relationships — refines, composes, relies on, precedes, contrasts — between {{ len $specs }} specifications. Open the atlas {{ partial "icons/arrow.html" }}
{{ end }}