From 0c4ca35e14e81d5b66b2b312abac86e0a92be3d2 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Fri, 18 Aug 2023 11:57:51 +0200 Subject: [PATCH] website: link ecosystem from edge Edge works fine, so we'll do this: 1. link to /docs/edge/ecosystem 2. suppress the "you're viewing edge" banner from the ecosystem page We can revisit this when the next release is out, but it makes the ecosystem page _less broken_ for the time until then. Signed-off-by: Stephan Renatus --- docs/website/layouts/docs/baseof.html | 7 ++++--- docs/website/layouts/docs/ecosystem.html.html | 4 ++-- docs/website/layouts/partials/nav.html | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/website/layouts/docs/baseof.html b/docs/website/layouts/docs/baseof.html index b716e44cf0..a915dba357 100644 --- a/docs/website/layouts/docs/baseof.html +++ b/docs/website/layouts/docs/baseof.html @@ -37,17 +37,18 @@ {{ $ancient := gt $rank 5 }} {{ $isEdge := (eq $version "edge") }} + {{ $isNotEcosystem := (ne (index (split .File.Path "/") 2) "ecosystem") }} {{ $isNotLatest := (and (ne $version $latest) (ne $version $latestVersionString)) }} -
- {{- if $isEdge }} +
+ {{- if $isEdge }} - {{- else if $isNotLatest }} + {{- else if $isNotLatest }}
These are the docs for an older version of OPA ({{ $version }}). Latest stable release is {{ $latestVersionString }} diff --git a/docs/website/layouts/docs/ecosystem.html.html b/docs/website/layouts/docs/ecosystem.html.html index 3b95c4525a..4d9acfa7b4 100644 --- a/docs/website/layouts/docs/ecosystem.html.html +++ b/docs/website/layouts/docs/ecosystem.html.html @@ -87,7 +87,7 @@

- Please see the latest docs for the OPA Ecosytem List. + Please see the latest docs for the OPA Ecosystem List.

{{ if (and (not .Params.hide_feedback) (site.Params.ui.feedback.enable)) }} @@ -102,4 +102,4 @@ {{ partial "javascript.html" . }} - \ No newline at end of file + diff --git a/docs/website/layouts/partials/nav.html b/docs/website/layouts/partials/nav.html index e6b89cb979..8b10d97344 100644 --- a/docs/website/layouts/partials/nav.html +++ b/docs/website/layouts/partials/nav.html @@ -18,7 +18,7 @@
-
\ No newline at end of file +