Skip to content

Commit

Permalink
[docs] Link to expressing or post (#6236)
Browse files Browse the repository at this point in the history
This is a good learning material and linking here might help users self
service when faced with this.

Signed-off-by: Charlie Egan <charlie@styra.com>
  • Loading branch information
charlieegan3 authored Sep 21, 2023
1 parent cd0bf5b commit 93d7d07
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ There are three kinds of components in the system:
* Networks connect servers and can be public or private. Public networks are connected to the Internet.
* Ports attach servers to networks.

All of the servers, networks, and ports are provisioned by a script. The script
All the servers, networks, and ports are provisioned by a script. The script
receives a JSON representation of the system as input:

```live:example:input
Expand Down Expand Up @@ -724,6 +724,11 @@ shell_accessible
```live:example/logical_or/partial_set:output
```

{{< info >}}
💡 there's a [blog post](https://www.styra.com/blog/how-to-express-or-in-rego/) that goes into much more detail
on this topic showing different methods express OR in idiomatic Rego for different use cases.
{{< /info >}}

<!---TBD: explain conflicts --->
### Putting It Together

Expand Down
19 changes: 19 additions & 0 deletions docs/website/content/integrations/expressing-or.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Express OR in Rego
subtitle: Idiomatic Rego Examples
labels:
category: learning
layer: web
inventors:
- styra
blogs:
- http://styra.com/blog/how-to-express-or-in-rego
docs_features:
learning-rego:
note: |
This [learning material](http://styra.com/blog/how-to-express-or-in-rego)
is a great way to learn how to migrate logic from other languages to Rego.
---

This [learning material](http://styra.com/blog/how-to-express-or-in-rego)
is a great way to learn how to migrate logic from other languages to Rego.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93d7d07

Please sign in to comment.