Skip to content

Commit 973ed11

Browse files
committed
docs: remove duplicated version section
1 parent 86cc7c6 commit 973ed11

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

docs/src/docs/usage/configuration.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ The configuration file can be validated with the JSON Schema: https://golangci-l
4242

4343
{ .ConfigurationExample }
4444

45-
### `version` configuration
46-
47-
```yaml
48-
# Defines the configuration version.
49-
# The only possible value is "2".
50-
version: "2"
51-
```
52-
5345
## Command-Line Options
5446

5547
### run

scripts/website/expand_templates/linters.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ func (e *ExampleSnippetsExtractor) extractExampleSnippets(example []byte) (*Sett
281281
}
282282

283283
if node.Value == "version" {
284-
node.HeadComment = `See the dedicated "version" documentation section.`
284+
node.HeadComment = `Defines the configuration version.
285+
The only possible value is "2"`
285286
newNode = nextNode
286287
}
287288

0 commit comments

Comments
 (0)