Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/gen-ai-docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ func buildKnowledge(root string) Knowledge {

// parseSampleGroups splits dev-samples.yaml into logical groups by comment headers.
func parseSampleGroups(raw string) []SampleGroup {
var groups []SampleGroup
lines := strings.Split(raw, "\n")

type docBlock struct {
Expand Down Expand Up @@ -305,6 +304,7 @@ func parseSampleGroups(raw string) []SampleGroup {
"CachedImageSet": "CachedImageSet manages a group of images to cache, optionally backed by a DiscoveryPolicy.",
"DiscoveryPolicy": "DiscoveryPolicy automatically discovers images from registries or Prometheus metrics.",
}
groups := make([]SampleGroup, 0, len(kindOrder))
for _, kind := range kindOrder {
g := kindGroups[kind]
g.Description = descriptions[kind]
Expand Down
Loading