cherry pick influxdb/host shortcode (#5104)
parent
67e697cacb
commit
fa8d7420a4
|
@ -4,6 +4,7 @@ influxdb:
|
|||
namespace: influxdb
|
||||
menu_category: self-managed
|
||||
list_order: 4
|
||||
placeholder_host: localhost:1313
|
||||
versions:
|
||||
- v2.7
|
||||
- v2.6
|
||||
|
@ -52,6 +53,7 @@ influxdb_cloud:
|
|||
versions: [cloud]
|
||||
list_order: 1
|
||||
latest: cloud
|
||||
placeholder_host: cloud2.influxdata.com
|
||||
|
||||
influxdb_cloud_serverless:
|
||||
name: InfluxDB Cloud Serverless
|
||||
|
@ -61,6 +63,7 @@ influxdb_cloud_serverless:
|
|||
versions: [cloud-serverless]
|
||||
list_order: 2
|
||||
latest: cloud-serverless
|
||||
placeholder_host: cloud2.influxdata.com
|
||||
|
||||
influxdb_cloud_dedicated:
|
||||
name: InfluxDB Cloud Dedicated
|
||||
|
@ -71,6 +74,7 @@ influxdb_cloud_dedicated:
|
|||
list_order: 3
|
||||
latest: cloud-dedicated
|
||||
link: "https://www.influxdata.com/contact-sales-form/"
|
||||
placeholder_host: cluster-id.influxdb.io
|
||||
latest_cli: 2.0.1
|
||||
|
||||
telegraf:
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
||||
{{- $currentVersion := index $productPathData 1 -}}
|
||||
{{- $isOSS := ne (len (findRE `^v[0-9]\.` $currentVersion)) 0 -}}
|
||||
{{- $parsedProductKey := cond $isOSS "oss" $currentVersion -}}
|
||||
{{- $productKey := .Get 0 | default $parsedProductKey -}}
|
||||
{{- $productAliases := dict "oss" "influxdb" "cloud" "influxdb_cloud" "cloud-tsm" "influxdb_cloud" "cloud-serverless" "influxdb_cloud_serverless" "serverless" "influxdb_cloud_serverless" "cloud-dedicated" "influxdb_cloud_dedicated" "dedicated" "influxdb_cloud_dedicated" "clustered" "influxdb_clustered" -}}
|
||||
{{- $productRef := index $productAliases $productKey -}}
|
||||
{{- $productData := index .Site.Data.products $productRef -}}
|
||||
{{ $productData.placeholder_host }}
|
Loading…
Reference in New Issue