From ef42b2817febc79f1e9023900fe79d11e6353fec Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Thu, 14 Dec 2023 16:31:47 +0000 Subject: [PATCH] docs: Add CTA for ecosystem submissions (#6482) * docs: Add CTA for ecosystem submissions We're trying to encourage users to list their projects, this will hopefully be a good prompt. Signed-off-by: Charlie Egan * Update docs/website/layouts/partials/ecosystem-cta.html Co-authored-by: Johan Fylling Signed-off-by: Charlie Egan --------- Signed-off-by: Charlie Egan Signed-off-by: Charlie Egan Co-authored-by: Johan Fylling --- docs/website/assets/sass/docs.sass | 12 ++++++++++++ docs/website/layouts/ecosystem/section.html.html | 1 + docs/website/layouts/ecosystem/single.html.html | 3 ++- docs/website/layouts/integrations/single.html.html | 2 ++ docs/website/layouts/partials/ecosystem-cta.html | 11 +++++++++++ 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 docs/website/layouts/partials/ecosystem-cta.html diff --git a/docs/website/assets/sass/docs.sass b/docs/website/assets/sass/docs.sass index 76c21012e7..6de8a912f8 100644 --- a/docs/website/assets/sass/docs.sass +++ b/docs/website/assets/sass/docs.sass @@ -217,6 +217,18 @@ $panel-header-logo-width: 85% p color: white +.ecosystem-cta + color: white + margin-top: 0.5rem + border: 3px solid deepskyblue + background-color: dodgerblue + padding: 1rem 1.5rem + border-radius: 0.5rem + a + color: white + text-decoration: underline + font-weight: bold + .ecosystem-list display: grid gap: 2rem 1rem diff --git a/docs/website/layouts/ecosystem/section.html.html b/docs/website/layouts/ecosystem/section.html.html index 3bd9faeb7e..302b1e02cc 100644 --- a/docs/website/layouts/ecosystem/section.html.html +++ b/docs/website/layouts/ecosystem/section.html.html @@ -54,6 +54,7 @@

{{ $category.title }}

{{ end }} + {{ partial "ecosystem-cta" }}

All Integrations

{{ $selectedIntegrations := partial "functions/sort-integrations" (dict "integrations" $integrations) }} diff --git a/docs/website/layouts/ecosystem/single.html.html b/docs/website/layouts/ecosystem/single.html.html index 0ad530ed1b..4d18c68222 100644 --- a/docs/website/layouts/ecosystem/single.html.html +++ b/docs/website/layouts/ecosystem/single.html.html @@ -23,7 +23,6 @@

- {{ $feature := path.BaseName .RelPermalink }} {{ $integrations := where $.Site.RegularPages "Section" "integrations" }} {{ $organizations := where $.Site.RegularPages "Section" "organizations" }} @@ -39,6 +38,8 @@

Integrations are ordered by the amount of linked content.

+ + {{ partial "ecosystem-cta" }} diff --git a/docs/website/layouts/integrations/single.html.html b/docs/website/layouts/integrations/single.html.html index 0b5b552003..ed7f369b90 100644 --- a/docs/website/layouts/integrations/single.html.html +++ b/docs/website/layouts/integrations/single.html.html @@ -199,6 +199,8 @@

Labels

{{ end }} + + {{ partial "ecosystem-cta" }} diff --git a/docs/website/layouts/partials/ecosystem-cta.html b/docs/website/layouts/partials/ecosystem-cta.html new file mode 100644 index 0000000000..9d9e64bbfc --- /dev/null +++ b/docs/website/layouts/partials/ecosystem-cta.html @@ -0,0 +1,11 @@ +

+ Do you have an OPA-based project or integration to share? Follow + + these instructions + + to get it listed or go to the #ecosystem channel in the + + OPA Slack + + if you have any questions. +