File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 14
14
{{- $paramHeadingLevel := add 1 $headingStartLevel }}
15
15
{{- range $params }}
16
16
{{- $name := printf (cond (default false .deprecated) "~~`%s`~~" "`%s`") .name }}
17
+ {{- $type := default "string" .type }}
18
+ {{- if reflect.IsSlice $type }}
19
+ {{- $type = delimit (apply $type "printf" "`%s`" ".") "/" }}
20
+ {{- else }}
21
+ {{- $type = printf "`%s`" $type }}
22
+ {{- end }}
17
23
{{- printf "%s %s\n" (strings.Repeat $paramHeadingLevel "#") $name }}
18
24
{{- printf
19
25
"| %s | %s | %s | %s | %s | %s |\n"
26
32
}}
27
33
{{- printf "| --- | :-: | :-: | :-: | :-: | :-: |\n" }}
28
34
{{- printf
29
- "| %s | %s | `%s` | %s | %s | %s |\n"
35
+ "| %s | %s | %s | %s | %s | %s |\n"
30
36
(cond (isset . "position") (printf "`#%d`" .position) "-")
31
37
$name
32
- (default "string" . type)
38
+ $ type
33
39
(cond (default false .required) "✓" "-")
34
40
(cond (isset . "default") (printf "`%s`" (string .default)) "-")
35
41
(cond (isset . "since") (printf "`%s`" (string .since)) "-")
Original file line number Diff line number Diff line change 17
17
{{- range $params }}
18
18
{{- $name := printf (cond (default false .deprecated) "~~`%s`~~" "`%s`") .name }}
19
19
{{- $ctx := default $context .context }}
20
+ {{- $type := default "string" .type }}
21
+ {{- if reflect.IsSlice $type }}
22
+ {{- $type = delimit (apply $type "printf" "`%s`" ".") "/" }}
23
+ {{- else }}
24
+ {{- $type = printf "`%s`" $type }}
25
+ {{- end }}
20
26
{{- printf "%s %s\n" (strings.Repeat $paramHeadingLevel "#") $name }}
21
27
{{- printf
22
28
"| %s | %s | %s | %s | %s | %s |\n"
29
35
}}
30
36
{{- printf "| --- | :-: | :-: | :-: | :-: | :-: |\n" }}
31
37
{{- printf
32
- "| %s | %s | `%s` | %s | %s | %s |\n"
38
+ "| %s | %s | %s | %s | %s | %s |\n"
33
39
$name
34
40
(cond (not $ctx) "-" $ctx | printf "`%s`")
35
- (default "string" . type)
41
+ $ type
36
42
(cond (default false .required) "✓" "-")
37
43
(cond (isset . "default") (printf "`%s`" (string .default)) "-")
38
44
(cond (isset . "since") (printf "`%s`" (string .since)) "-")
You can’t perform that action at this time.
0 commit comments