Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions layouts/shortcodes/ecosystem/integrations-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,32 @@
Name[^1] | OSS | Component | Learn more
------------ | --- | ---------- | ----------
{{- range sort (sort $integrations ".title") ".oss" "desc" }}
{{ $lang := cond (eq .language "collector") (dict "name" "Collector") (index $.Site.Data.instrumentation .language) -}}
{{ $cncfTag := cond (isset . "cncfProjectLevel") (printf "<img alt=\"CNCF %s Project\" title=\"CNCF %s Project\" style=\"display: inline-block; padding-left: 8px; border: none; width: 16; height: 16px;\" src=\"/img/cncf-icon-color.svg\">" (humanize .cncfProjectLevel) (humanize .cncfProjectLevel)) "" -}}
[{{ .title }}]({{ .urls.website }}){{ $cncfTag }} | {{- cond (eq .license "Commercial") "No" "Yes" }} | {{ $lang.name }} | [{{ replace .urls.docs "https://" "" }}]({{ .urls.docs }})
{{ $lang := cond
(eq .language "collector")
(dict "name" "Collector")
(index $.Site.Data.instrumentation .language)
-}}
{{ $cncfTag := cond
(isset . "cncfProjectLevel")
(printf "<img alt=\"CNCF %s Project\" title=\"CNCF %s Project\" style=\"display: inline-block; padding-left: 8px; border: none; width: 16; height: 16px;\" src=\"/img/cncf-icon-color.svg\">"
(humanize .cncfProjectLevel)
(humanize .cncfProjectLevel))
"" -}}

{{ if not .urls.website -}}
{{ errorf "Website URL is missing for integrations registry entry '%s'" .title -}}
{{ end -}}
{{ if not .urls.docs -}}
{{ errorf "Docs URL is missing for integrations registry entry '%s'" .title -}}
{{ end -}}

{{/* Each line below is a table column */ -}}

[{{ .title }}]({{ .urls.website }})
{{- $cncfTag }} |
{{- cond (eq .license "Commercial") "No" "Yes" }} |
{{- $lang.name -}}
| [{{ replace .urls.docs "https://" "" }}]({{ .urls.docs }})
{{- end }}

[^1]: Listed alphabetically