Skip to content

Commit 04b1163

Browse files
committed
add title to page
1 parent 3f9953b commit 04b1163

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

docs/configuration_public.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Configure the Datadog Operator
3+
---
4+
15
This page lists commonly-used configuration parameters for the Datadog Operator. For all configuration parameters, see the [configuration spec][1] in the [`DataDog/datadog-operator`][2] repo.
26

37
### Example manifests
@@ -730,6 +734,7 @@ spec:
730734

731735
`override`
732736
: The default configurations of the agents
737+
733738
{{% /collapse-content %}}
734739

735740
For a complete list of parameters, see the [Operator configuration spec][8].

hack/generate-docs/generate-docs.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ func writePropsTablePublic(f *os.File, props map[string]apiextensions.JSONSchema
188188
})
189189

190190
mustWriteString(f, fmt.Sprintf("{{%% collapse-content title=\"Parameters\" level=\"h4\" expanded=true id=\"global-options-list\" %%}}\n"))
191-
for i := 0; i < len(docs); i++ {
192-
doc := docs[i]
191+
for _, doc := range docs {
193192
desc := doc.description
194193
if newDesc, ok := nameToDescMap[doc.name]; ok {
195194
desc = newDesc
@@ -201,11 +200,7 @@ func writePropsTablePublic(f *os.File, props map[string]apiextensions.JSONSchema
201200
desc = strings.ToUpper(desc[:1]) + desc[1:]
202201
}
203202
mustWriteString(f, fmt.Sprintf("`%s`\n", doc.name))
204-
if i < len(docs)-1 {
205-
mustWriteString(f, fmt.Sprintf(": %s\n\n", desc))
206-
} else {
207-
mustWriteString(f, fmt.Sprintf(": %s\n", desc))
208-
}
203+
mustWriteString(f, fmt.Sprintf(": %s\n\n", desc))
209204
}
210205
mustWriteString(f, "{{% /collapse-content %}}\n\n")
211206
}

hack/generate-docs/public_header.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: Configure the Datadog Operator
3+
---
4+
15
This page lists commonly-used configuration parameters for the Datadog Operator. For all configuration parameters, see the [configuration spec][1] in the [`DataDog/datadog-operator`][2] repo.
26

37
### Example manifests

0 commit comments

Comments
 (0)