Skip to content

Commit

Permalink
Escape go templates in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Feb 23, 2022
1 parent bfb64b1 commit e82937c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/checks/alerts/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ rule {
Example that enforces all alerting rules with non-zero `for` field to have an
annotation called `alert_for` and value equal to `for` field.

{% raw %}
```js
rule {
match {
Expand All @@ -72,6 +73,7 @@ rule {
}
}
```
{% endraw %}

## How to disable it

Expand Down
2 changes: 2 additions & 0 deletions docs/checks/rule/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Example that enforces all alerting rules with `for` value present and greater
than 5 minutes field to have a label called `alert_for` and value equal to
`for` field.

{% raw %}
```js
rule {
match {
Expand All @@ -70,6 +71,7 @@ rule {
}
}
```
{% endraw }

## How to disable it

Expand Down
2 changes: 2 additions & 0 deletions docs/checks/rule/reject.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ rule {

Disallow label and annotation values equal to alert name:

{% raw %}
```js
rule {
match {
Expand All @@ -83,6 +84,7 @@ rule {
}
}
```
{% endraw %}

## How to disable it

Expand Down

0 comments on commit e82937c

Please sign in to comment.