@@ -41,18 +41,18 @@ func (f *Readme) SetTemplateDefaults() error {
41
41
}
42
42
43
43
f .License = strings .Replace (
44
- strings .Replace (string ( f .Boilerplate ) , "/*" , "" , 1 ),
44
+ strings .Replace (f .Boilerplate , "/*" , "" , 1 ),
45
45
"*/" , "" , 1 )
46
46
47
47
f .TemplateBody = fmt .Sprintf (readmeFileTemplate ,
48
- codeFence ("sh" , " kubectl apply -f config/samples/" ),
49
- codeFence ("sh" , " make docker-build docker-push IMG=<some-registry>/{{ .ProjectName }}:tag" ),
50
- codeFence ("sh" , " make deploy IMG=<some-registry>/{{ .ProjectName }}:tag" ),
51
- codeFence ("sh" , " make uninstall" ),
52
- codeFence ("sh" , " make undeploy" ),
53
- codeFence ("sh" , " make install" ),
54
- codeFence ("sh" , " make run" ),
55
- codeFence ("sh" , " make manifests" ))
48
+ codeFence ("kubectl apply -f config/samples/" ),
49
+ codeFence ("make docker-build docker-push IMG=<some-registry>/{{ .ProjectName }}:tag" ),
50
+ codeFence ("make deploy IMG=<some-registry>/{{ .ProjectName }}:tag" ),
51
+ codeFence ("make uninstall" ),
52
+ codeFence ("make undeploy" ),
53
+ codeFence ("make install" ),
54
+ codeFence ("make run" ),
55
+ codeFence ("make manifests" ))
56
56
57
57
return nil
58
58
}
@@ -124,6 +124,6 @@ More information can be found via the [Kubebuilder Documentation](https://book.k
124
124
{{ .License }}
125
125
`
126
126
127
- func codeFence (syntax string , code string ) string {
128
- return "```" + syntax + "\n " + code + "\n " + "```"
127
+ func codeFence (code string ) string {
128
+ return "```sh" + "\n " + code + "\n " + "```"
129
129
}
0 commit comments