Skip to content

Commit

Permalink
website: link ecosystem from edge
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Aug 18, 2023
1 parent 644c790 commit fe7cdb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/website/layouts/docs/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@
{{ $ancient := gt $rank 5 }}

{{ $isEdge := (eq $version "edge") }}
{{ $isEcosystem := (eq (index (split .File.Path "/") 2) "ecosystem" }}
{{ $isNotLatest := (and (ne $version $latest) (ne $version $latestVersionString)) }}

<div class="dashboard-wrapper {{ if (or $isEdge $isNotLatest) }}showing-banner-version-warning{{ end }}">
{{- if $isEdge }}
<!-- {{ $isEcosystem }}
{{ ${{ index (split .File.Path "/") 2 }} -->
<div class="message is-info banner-version-warning">
<div class="message-body">
This version is still under development! Latest stable release is <a href="/docs/latest">{{ $latestVersionString }}</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/website/layouts/docs/ecosystem.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<section class="section">
<div class="content">
<p>
Please see the latest docs for the <a href="https://www.openpolicyagent.org/docs/latest/ecosystem/">OPA Ecosytem List</a>.
Please see the latest docs for the <a href="https://www.openpolicyagent.org/docs/edge/ecosystem/">OPA Ecosystem List</a>.
</p>
</div>
{{ if (and (not .Params.hide_feedback) (site.Params.ui.feedback.enable)) }}
Expand All @@ -102,4 +102,4 @@

{{ partial "javascript.html" . }}
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions docs/website/layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="/docs/">Docs</a></li>
<li class="nav-item"><a class="nav-link" href="/docs/#running-opa">Download</a></li>
<li class="nav-item"><a class="nav-link" href="/docs/latest/ecosystem/">Ecosystem</a></li>
<li class="nav-item"><a class="nav-link" href="/docs/edge/ecosystem/">Ecosystem</a></li>
<li class="nav-item"><a class="nav-link" href="/security">Security</a></li>
<li class="nav-item"><a class="nav-link" href="/support">Support</a></li>
<li class="nav-item"><a class="nav-link" href="/community">Community</a></li>
Expand Down Expand Up @@ -46,4 +46,4 @@
</div>
</div>
</nav>
</div>
</div>

0 comments on commit fe7cdb9

Please sign in to comment.