diff --git a/content/enterprise_influxdb/v1/_index.md b/content/enterprise_influxdb/v1/_index.md index 0e81809e0..3f4c28728 100644 --- a/content/enterprise_influxdb/v1/_index.md +++ b/content/enterprise_influxdb/v1/_index.md @@ -3,7 +3,7 @@ title: InfluxDB Enterprise documentation description: > Documentation for InfluxDB Enterprise, which adds clustering, high availability, fine-grained authorization, and more to InfluxDB OSS. aliases: - - /enterprise/v1.10/ + - /enterprise/v1.10/ menu: enterprise_influxdb_v1: name: InfluxDB Enterprise v1.10 diff --git a/layouts/partials/footer/search.html b/layouts/partials/footer/search.html index 5dcd46c81..2b378a0ee 100644 --- a/layouts/partials/footer/search.html +++ b/layouts/partials/footer/search.html @@ -3,8 +3,8 @@ {{ $currentVersion := index $productPathData 1 }} {{ $latestV2 := .Site.Data.products.influxdb.latest }} {{ $fluxSupported := slice "influxdb" "enterprise_influxdb" }} -{{ $influxdbFluxSupport := slice "v1.7" "v1.8" "v1.9" "cloud" }} -{{ $includeFlux := cond (and (in $fluxSupported $product) (or (in $influxdbFluxSupport $currentVersion) (gt (len (findRE `v2\.` $currentVersion)) 0))) true false }} +{{ $influxdbFluxSupport := slice "v1" "v2" "cloud" }} +{{ $includeFlux := cond (and (in $fluxSupported $product) (in $influxdbFluxSupport $currentVersion)) true false }} {{ $includeResources := not (in (slice "cloud-serverless" "cloud-dedicated" "clustered") $currentVersion) }} @@ -28,7 +28,7 @@ docsearch({ return 'Cloud Dedicated'; } else if (version === 'clustered') { return 'Clustered'; - } else if (/v\d\./.test(version)) { + } else if (/v\d+/.test(version)) { return version; } else { return ''; diff --git a/layouts/partials/header/search-attributes.html b/layouts/partials/header/search-attributes.html index aa0e3da13..b9364cc79 100644 --- a/layouts/partials/header/search-attributes.html +++ b/layouts/partials/header/search-attributes.html @@ -1,8 +1,7 @@ {{ $productPathData := findRE "[^/]+.*?" .RelPermalink }} {{ $product := index $productPathData 0 | default "" }} {{ $currentVersion := index $productPathData 1 | default ""}} -{{ $latestFlux := .Site.Data.products.flux.latest }} -{{ $fluxPath := print "/flux/" $latestFlux "/" }} +{{ $fluxPath := print "/flux/v0/" }} {{ $isFluxLatest := cond (in .RelPermalink $fluxPath) true false }} {{ $isResources := cond (eq $product "resources") true false}} {{ $searchTag := print $product "-" $currentVersion }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 8832086b0..b00eff4ca 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -39,7 +39,7 @@ {{ .Scratch.Set "searchPlaceholder" (print "Search " (index .Site.Data.products $influxdbProductKey).name) }} {{ end }} {{ else }} - {{ .Scratch.Set "searchPlaceholder" (print "Search " (index .Site.Data.products $product).name " " $currentVersion) }} + {{ .Scratch.Set "searchPlaceholder" (print "Search " (index .Site.Data.products $product).name) }} {{ end }} {{ $searchPlaceholder := .Scratch.Get "searchPlaceholder" }} diff --git a/layouts/partials/topnav/product-selector.html b/layouts/partials/topnav/product-selector.html index 78970808d..ce53a7a23 100644 --- a/layouts/partials/topnav/product-selector.html +++ b/layouts/partials/topnav/product-selector.html @@ -46,7 +46,7 @@ {{ if eq $product "influxdb" }} {{ $replacementPath := index (index $influxdbInfo .name) "path" }} {{ $altProductPage := $.GetPage ((replaceRE $pageRoot $replacementPath $.Page.RelPermalink) | replaceRE `\/$` "") }} - + {{/* ////////////// GET ALT LINKS FROM FRONTMATTER ////////////// */}} {{ if (gt (len $altLinks) 0) }} {{ $productKey := index (index $influxdbInfo .name) "key" | default "" }} @@ -73,14 +73,15 @@