Back to Influxdb

List All Functions

layouts/shortcodes/flux/list-all-functions.html

latest1.2 KB
Original Source

{{- $productData := partial "product/get-data.html" . -}} {{ $section := $productData.namespace }} {{ $currentVersion := .Page.Params.version }} {{ $filters := .Get "filters" | default "" }} {{ $filterArr := split $filters ", "}} {{ $tagTaxonomy := print $section "/" $currentVersion "/tags" }}

{{ range where $.Site.RegularPages.ByTitle "Section" $section }} {{ $title := replaceRE \ function "" .Title }} {{ $deprecated := isset .Page.Params "deprecated" }} {{ $removed := isset .Page.Params "removed" }} {{ $experimental := in .Page.RelPermalink "experimental" }} {{ $tagList := index .Page.Params $tagTaxonomy | default (slice "") }} {{ if ne $filters "" }} {{ if gt (len (intersect $filterArr (index .Page.Params $tagTaxonomy))) 0}} {{ if and (in .RelPermalink (print $section "/" $currentVersion "/")) (in .Title "() function") }} - {{ $title }}{{ if $deprecated }} – (deprecated){{ end }} {{ end }} {{ end }} {{ else }} {{ if and (in .RelPermalink (print $section "/" $currentVersion "/")) (in .Title "() function") }} - {{ $title }} {{ if $removed }} – (removed) {{ else if $deprecated }} – (deprecated){{ end }} {{ end }} {{ end }} {{ end }}