Skip to content

Commit

Permalink
Add icons to alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Jan 30, 2024
1 parent 426fe4e commit a418954
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 27 deletions.
22 changes: 8 additions & 14 deletions content/en/docs/topics/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ WordTemplate = \b(?:%s)\b

### Format associations

{{< alert context="info">}}
**Heads up**!

{{< alert icon="👉" context="info">}}
After making a format assignment, the configuration of the *assigned* format is
now applied from your `.vale.ini` file.

Expand Down Expand Up @@ -176,9 +174,7 @@ Style1.Rule2 = error

#### BlockIgnores

{{< alert context="info">}}
**Heads up**!

{{< alert icon="👉" context="info">}}
`BlockIgnores` are only supported in **Markdown**, **reStructuredText**, **AsciiDoc**,
and **Org Mode**.

Expand Down Expand Up @@ -207,9 +203,7 @@ BlockIgnores = (?s) *({< output >}.*?{< ?/ ?output >}), \

#### TokenIgnores

{{< alert context="info">}}
**Heads up**!

{{< icon="👉" alert context="info">}}
`TokenIgnores` are only supported in **Markdown**, **reStructuredText**, **AsciiDoc**,
and **Org Mode**.

Expand Down Expand Up @@ -266,6 +260,10 @@ This is some text

### reStructuredText

{{< alert icon="👉" >}}
Commenting out headers/headings isn't currently supported. See [issues/340](https://github.com/errata-ai/vale/issues/340) for more information.
{{< /alert >}}

reStructuredText uses its own comment style:

```text
Expand All @@ -288,10 +286,6 @@ This is some text
# vale on
```

{{< alert icon="👉" >}}
Commenting out headers/headings isn't currently supported. See [issues/340](https://github.com/errata-ai/vale/issues/340) for more information.
{{< /alert >}}

### AsciiDoc

AsciiDoc uses HTML-style comments with its pass-through functionality:
Expand All @@ -308,7 +302,7 @@ This is a steward that raises an alert.

## Search process

{{< alert icon="👉" >}}
{{< alert icon="👉" context="info" >}}
You can override the default search process by manually specifying a path using
the [--config](/manual/config/) option or by defining a `VALE_CONFIG_PATH` environment variable.
{{< /alert >}}
Expand Down
2 changes: 0 additions & 2 deletions content/en/docs/topics/scoping/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ configuration) in your source code comments.
## Non-standard markup

{{< alert context="info">}}
**Heads up**!

Ignore patterns are a low-level concept that have a few important restrictions:

- They are only supported in **Markdown**, **reStructuredText**, **AsciiDoc**,
Expand Down
12 changes: 3 additions & 9 deletions content/en/docs/topics/styles/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,14 @@ styles/
where _base_, _blog_, and _docs_ are your styles that each contain certain
rules.

{{< alert context="info">}}
**Heads up**!

{{< alert icon="👉" context="warning">}}
Make sure your rule files end in extension `.yml`. Do not end them in `.yaml`,
as Vale will not detect them.
{{< /alert >}}

## Extension points

{{< alert context="info">}}
**Heads up**!

{{< alert icon="👉" context="info">}}
In addition to the standard Go [regex syntax][1], Vale also
supports positive lookahead (`(?=re)`), negative lookahead (`(?!re)`),
positive lookbehind (`(?<=re)`), and negative lookbehind (`(?<!re)`).
Expand Down Expand Up @@ -571,9 +567,7 @@ skip: 3

### script

{{< alert context="info">}}
**Heads up**!

{{< alert icon="👉" context="warning">}}
When using `script`-based rules, you're limited to the standard Go [regex syntax][1].

[1]: https://pkg.go.dev/regexp/syntax
Expand Down
2 changes: 0 additions & 2 deletions content/en/docs/topics/vocab/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ without having to re-implement them.
## Folder structure

{{< alert context="info">}}
**Heads up**!

In versions of Vale prior to 3.0, vocabularies were stored in
`<StylesPath>/Vocab`. When upgrading from an older version of Vale, you'll need
to move your vocabularies to the new `<StylesPath>/config/vocabularies`
Expand Down

0 comments on commit a418954

Please sign in to comment.