package docs

func init() {
	Summary = map[string]string{
	{{ if .Documents }}{{ range .Documents }}{{ if .Synonyms }}
		{{ quote (index .Synonyms 0) }}: {{ quote (trim .Summary) }},{{ else }}
		{{ quote .ID }}: {{ quote (trim .Summary) }},{{ end }}{{ end }}{{ end }}
	{{ if otherdocs "optional" }}{{ range otherdocs "optional" }}{{ if .Synonyms }}
		{{ quote (index .Synonyms 0) }}: {{ quote (trim .Summary) }},{{ else }}
		{{ quote .DocumentID }}: {{ quote (trim .Summary) }},{{ end }}{{ end }}{{ end }}
	}

	Synonym = map[string]string{
	{{ if .Documents }}{{ range .Documents }}{{ if .Synonyms }}{{ $ID := quote (index .Synonyms 0) }}{{ range .Synonyms }}
		{{ quote . }}: {{ $ID }},{{ end }}{{ else }}
		{{ quote .ID }}: {{ quote .ID }},{{ end }}{{ end }}{{ end }}
	{{ if otherdocs "optional" }}{{ range otherdocs "optional" }}{{ if .Synonyms }}{{ $ID := quote (index .Synonyms 0) }}{{ range .Synonyms }}
		{{ quote . }}: {{ $ID }},{{ end }}{{ else }}
		{{ quote .DocumentID }}: {{ quote .DocumentID }},{{ end }}{{ end }}{{ end }}
	}
}