Skip to content

Commit

Permalink
Merge branch 'main' into rego-v1/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
johanfylling committed Dec 14, 2023
2 parents 051a04d + ef42b28 commit ebcc5c1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/website/assets/sass/docs.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/website/layouts/ecosystem/section.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ <h2>{{ $category.title }}</h2>
</div>
{{ end }}

{{ partial "ecosystem-cta" }}

<h2>All Integrations</h2>
{{ $selectedIntegrations := partial "functions/sort-integrations" (dict "integrations" $integrations) }}
Expand Down
3 changes: 2 additions & 1 deletion docs/website/layouts/ecosystem/single.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ <h1 class="banner-content">
</div>

<div class="page-content">

{{ $feature := path.BaseName .RelPermalink }}
{{ $integrations := where $.Site.RegularPages "Section" "integrations" }}
{{ $organizations := where $.Site.RegularPages "Section" "organizations" }}
Expand All @@ -39,6 +38,8 @@ <h1 class="banner-content">
</div>
<p class="ecosystem-note">Integrations are ordered by the amount of linked content.</p>
</div>

{{ partial "ecosystem-cta" }}
</section>
</main>
</div>
Expand Down
2 changes: 2 additions & 0 deletions docs/website/layouts/integrations/single.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ <h2>Labels</h2>
</div>
</div>
{{ end }}

{{ partial "ecosystem-cta" }}
</div>
</section>
</main>
Expand Down
11 changes: 11 additions & 0 deletions docs/website/layouts/partials/ecosystem-cta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<p class="ecosystem-cta">
Do you have an OPA-based project or integration to share? Follow
<a target="_blank" rel="noopener noreferrer" href="https://github.com/open-policy-agent/opa/tree/main/docs#opa-ecosystem">
these instructions
</a>
to get it listed or go to the <code>#ecosystem</code> channel in the
<a target="_blank" rel="noopener noreferrer" href="https://slack.openpolicyagent.org">
OPA Slack
</a>
if you have any questions.
</p>

0 comments on commit ebcc5c1

Please sign in to comment.