From 973ed11e15f3f0ad24296be9dcd139e310e3d653 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 26 Mar 2025 19:26:07 +0200 Subject: [PATCH] docs: remove duplicated version section --- docs/src/docs/usage/configuration.mdx | 8 -------- scripts/website/expand_templates/linters.go | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) 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 }