Skip to content

Commit

Permalink
docs: Add a "Open In Playground" button below policy examples
Browse files Browse the repository at this point in the history
This change is made so that it is more clear to people that
the examples do have an underlying playground example.

Fixes #2207

Signed-off-by: Frederic <[email protected]>
  • Loading branch information
GBrawl authored and patrick-east committed Mar 26, 2020
1 parent 7002b6f commit 9e46289
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions docs/website/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/ikesWCFIH8">Open In Playground</a>
</button>
</div>
</div>
<div class="tab-pane fade" id="v-pills-k8s-2-desktop-content"
role="tabpanel"
Expand Down Expand Up @@ -424,6 +429,11 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/oL4Ofd1nQi">Open In Playground</a>
</button>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -539,6 +549,11 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/DqXNKeLm20">Open In Playground</a>
</button>
</div>
</div>
<div class="tab-pane fade" id="v-pills-envoy-2-desktop-content"
role="tabpanel"
Expand Down Expand Up @@ -631,6 +646,11 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/FiFAMwNoqm">Open In Playground</a>
</button>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -708,6 +728,11 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/qUkvgJRpIU">Open In Playground</a>
</button>
</div>
</div>
<div class="tab-pane fade" id="v-pills-app-2-desktop-content"
role="tabpanel"
Expand Down Expand Up @@ -767,9 +792,12 @@ <h2>Declarative Policy</h2>
</code>
</pre>
</div>
<div class="text-center blue">
<button class="mt-4 btn btn-primary"><a
href="https://play.openpolicyagent.org/p/c6412EHjS7">Open In Playground</a>
</button>
</div>
</div>


</div>
</div>
</div>
Expand Down

0 comments on commit 9e46289

Please sign in to comment.