Skip to content

Commit

Permalink
Update jq command for pretty doc-validator output
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
  • Loading branch information
jdbaldry committed Sep 20, 2023
1 parent 82e64b1 commit edfa7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sources/review/doc-validator/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ For more human-readable output, pipe the output to [`jq`](https://jqlang.github.
For example:

```console
make -s doc-validator | jq -r '"ERROR: \(.location.path):\(.location.range.start.line):\(.location.range.start.column): \(.message)"'
make -s doc-validator | jq -r '"ERROR: \(.location.path):\(.location.range.start.line // 1):\(.location.range.start.column // 1): \(.message). Suggestion: \(.suggestions[0].text // "")"'
```

## Error codes
Expand Down

0 comments on commit edfa7b5

Please sign in to comment.