diff --git a/docs/src/docs/usage/configuration.mdx b/docs/src/docs/usage/configuration.mdx index fbc4b889b704..276480ad7d7c 100644 --- a/docs/src/docs/usage/configuration.mdx +++ b/docs/src/docs/usage/configuration.mdx @@ -42,14 +42,6 @@ The configuration file can be validated with the JSON Schema: https://golangci-l { .ConfigurationExample } -### `version` configuration - -```yaml -# Defines the configuration version. -# The only possible value is "2". -version: "2" -``` - ## Command-Line Options ### run diff --git a/scripts/website/expand_templates/linters.go b/scripts/website/expand_templates/linters.go index 87a386e4ace0..eba2a6291c18 100644 --- a/scripts/website/expand_templates/linters.go +++ b/scripts/website/expand_templates/linters.go @@ -281,7 +281,8 @@ func (e *ExampleSnippetsExtractor) extractExampleSnippets(example []byte) (*Sett } if node.Value == "version" { - node.HeadComment = `See the dedicated "version" documentation section.` + node.HeadComment = `Defines the configuration version. +The only possible value is "2"` newNode = nextNode }