{{ define "main" }} {{- /* What graph.json does not hold, by concept id: each concept's page, trust tone and label. */ -}} {{- $extra := dict -}} {{- range (partialCached "concepts.html" "concepts").id }}{{ $extra = merge $extra (dict .id (dict "url" .page.RelPermalink "tone" .trust.tone "trust" (.trust.label | strings.FirstUpper))) }}{{ end -}} {{- /* A domain host has the federation workflow, which serves the host's workspace beside the site after the build. */ -}} {{- $workspace := resources.Get "host/knowledge-federation.yaml" -}}
{{- /* The page has two views. graph.js shows the heading and the words of the one the address asks for; the docs call a domain's federated bundles its context workspace. */ -}}

{{ .Title }}

Every concept and typed relation lokf export wrote to graph.json. The concept with the most relations is in the middle, and each of the others is on a ring, near the concepts it is related to. A click on a concept shows its record. {{- if not $workspace }} This repository federates no other bundle, so it has no workspace to draw.{{ end }}

{{- if $workspace }} {{- end }}

{{ end }} {{ define "scripts" }} {{- with partial "vendor.html" "cytoscape" }}{{ end }} {{- with resources.Get "js/graph.js" | minify }}{{ end }} {{ end }}