Skip to content

Commit bc52693

Browse files
committed
fix: revert tabs in documentation.md.tmpl YAML code blocks
documentation.md.tmpl contains YAML code examples (enabled: true/false inside metric/event config snippets) that are emitted verbatim into the generated documentation.md files. Tab indentation in those snippets caused make gogenerate to produce tabs in the output, failing the 'Generated code is out of date' diff check. Only Go template files (.go.tmpl) should use tab indentation. Assisted-by: Claude Sonnet 4.6
1 parent ac530a0 commit bc52693

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/mdatagen/internal/templates/documentation.md.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The following metrics are emitted by default. Each of them can be disabled by ap
154154
```yaml
155155
metrics:
156156
<metric_name>:
157-
enabled: false
157+
enabled: false
158158
```
159159

160160
{{- end }}
@@ -179,7 +179,7 @@ The following metrics are not emitted by default. Each of them can be enabled by
179179
```yaml
180180
metrics:
181181
<metric_name>:
182-
enabled: true
182+
enabled: true
183183
```
184184

185185
{{- end }}
@@ -199,7 +199,7 @@ The following events are emitted by default. Each of them can be disabled by app
199199
```yaml
200200
events:
201201
<event_name>:
202-
enabled: false
202+
enabled: false
203203
```
204204

205205
{{- range $eventName, $event := .Events }}
@@ -223,7 +223,7 @@ The following events are not emitted by default. Each of them can be enabled by
223223
```yaml
224224
events:
225225
<event_name>:
226-
enabled: true
226+
enabled: true
227227
```
228228

229229
{{- end }}

0 commit comments

Comments
 (0)