Skip to content

Commit 3a26f3f

Browse files
committed
update template with more replace
1 parent cc95965 commit 3a26f3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/crd/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ _Base type:_ `LocalPolicyTargetReferenceWithSectionName`
157157
| `group` _[Group](#group)_ | Group is the group of the target resource. |
158158
| `kind` _[Kind](#kind)_ | Kind is kind of the target resource. |
159159
| `name` _[ObjectName](#objectname)_ | Name is the name of the target resource. |
160-
| `sectionName` _[SectionName](#sectionname)_ | SectionName is the name of a section within the target resource. When unspecified, this targetRef targets the entire resource. In the following resources, SectionName is interpreted as the following:<br /><br /> * Gateway: Listener name * HTTPRoute: HTTPRouteRule name * Service: Port name<br /><br /> If a SectionName is specified, but does not exist on the targeted object, the Policy must fail to attach, and the policy implementation should record a `ResolvedRefs` or similar Condition in the Policy's status. |
160+
| `sectionName` _[SectionName](#sectionname)_ | SectionName is the name of a section within the target resource. When unspecified, this targetRef targets the entire resource. In the following resources, SectionName is interpreted as the following:<br /><br /> Gateway: Listener name<br /> • HTTPRoute: HTTPRouteRule name<br /> • Service: Port name<br /><br /> If a SectionName is specified, but does not exist on the targeted object, the Policy must fail to attach, and the policy implementation should record a `ResolvedRefs` or similar Condition in the Policy's status. |
161161

162162

163163
_Appears in:_

docs/template/type_members.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
Please refer to the Kubernetes API documentation for details on the `metadata` field.
55
{{- else -}}
66
{{- /* First replace makes paragraphs separated, second merges lines in paragraphs. */ -}}
7-
{{ $field.Doc | replace "\n\n" "<br /><br />" | replace "\n" " " }}
7+
{{ $field.Doc | replace "\n\n" "<br /><br />" | replace "\n" " " | replace " *" "<br /> •" | replace "<br /><br /><br />" "<br /><br />" }}
88
{{- end -}}
99
{{- end -}}

0 commit comments

Comments
 (0)