{{- /*
The site's navigation, in parts: the guide, the schema when the repository
holds one, and the knowledge bundle. A part is a heading that opens and
closes, and so is each group inside it. A page that retells another has no
line of its own: the page it retells offers it. The parts share one `name` and the
groups another, so the browser closes the others when one opens, with no
script. The page passes its key from nav-key.html, and its part and its
group are the ones drawn open. Called cached by that key, so the links are
built once per group, not per page; site.js marks the current page's link.
The data, when the site serves it, and the changelog come last.
*/ -}}
{{- $open := . -}}
{{- $part := cond (hasPrefix $open "docs:") "guide" (cond (hasPrefix $open "/knowledge") "bundle" (index (split $open ":") 0)) -}}
{{ partial "icon.html" "guide" }}Guide
- Home
{{- with site.GetPage "/docs" }}{{ if .Params.docName }}
- {{ .Title }}
{{- end }}{{ end }}
{{- range (partialCached "docs-groups.html" "docs").list }}
{{ .label }}
{{- end }}
{{- with site.GetPage "/schema" }}
{{ partial "icon.html" "schema" }}Schema
{{- range $kind := slice "classes" "enums" "slots" "types" "subsets" }}
{{- with site.GetPage (printf "/schema/%s" $kind) }}
{{ .Title }} {{ len .RegularPages }}
{{- end }}
{{- end }}
{{- end }}
{{- with site.GetPage "/knowledge" }}
{{ partial "icon.html" "bundle" }}Knowledge bundle
{{- $all := partialCached "concepts.html" "concepts" }}
{{- range .Sections.ByTitle }}
{{ .Title }} {{ len .RegularPages }}
- Overview
{{- range .RegularPages.ByTitle }}
{{- $t := (index $all.id .Params.conceptId).trust }}
- {{ .Title }}
{{- end }}
{{- end }}
{{- end }}
{{- with site.GetPage "/browse" }}
{{ partial "icon.html" "data" }}Browse the data
{{- end }}
{{- with site.GetPage "/changelog" }}
{{ partial "icon.html" "changelog" }}Changelog
{{- end }}