File tree 6 files changed +22
-6
lines changed
6 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ other = "Context"
10
10
[parameter_default ]
11
11
other = " Default"
12
12
13
+ [parameter_example ]
14
+ other = " Example"
15
+
13
16
[parameter_heading ]
14
17
other = " Parameters"
15
18
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ other = "Context"
10
10
[parameter_default ]
11
11
other = " Default"
12
12
13
+ [parameter_example ]
14
+ other = " Example"
15
+
13
16
[parameter_heading ]
14
17
other = " Parameters"
15
18
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ other = "上下文"
10
10
[parameter_default ]
11
11
other = " 默认值"
12
12
13
+ [parameter_example ]
14
+ other = " 示例"
15
+
13
16
[parameter_heading ]
14
17
other = " 参数"
15
18
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ other = "默認值"
13
13
[parameter_heading ]
14
14
other = " 參數"
15
15
16
+ [parameter_example ]
17
+ other = " 示例"
18
+
16
19
[parameter_name ]
17
20
other = " 名稱"
18
21
Original file line number Diff line number Diff line change 22
22
{{- end }}
23
23
{{- printf "%s %s\n" (strings.Repeat $paramHeadingLevel "#") $name }}
24
24
{{- printf
25
- "| %s | %s | %s | %s | %s | %s |\n"
25
+ "| %s | %s | %s | %s | %s | %s | %s | \n"
26
26
(i18n "parameter_position")
27
27
(i18n "parameter_name")
28
28
(i18n "parameter_type")
29
29
(i18n "parameter_required")
30
30
(i18n "parameter_default")
31
31
(i18n "parameter_since")
32
+ (i18n "parameter_example")
32
33
}}
33
- {{- printf "| --- | :-: | :-: | :-: | :-: | :-: |\n" }}
34
+ {{- printf "| --- | :-: | :-: | :-: | :-: | :-: | :-: | \n" }}
34
35
{{- printf
35
- "| %s | %s | %s | %s | %s | %s |\n"
36
+ "| %s | %s | %s | %s | %s | %s | %s | \n"
36
37
(cond (isset . "position") (printf "`#%d`" .position) "-")
37
38
$name
38
39
$type
39
40
(cond (default false .required) "✓" "-")
40
41
(cond (isset . "default") (printf "`%s`" (string .default)) "-")
41
42
(cond (isset . "since") (printf "`%s`" (string .since)) "-")
43
+ (cond (isset . "example") (printf "`%s`" (string .example)) "-")
42
44
}}
43
45
{{- printf "\n" }}
44
46
{{- with .description }}
Original file line number Diff line number Diff line change 25
25
{{- end }}
26
26
{{- printf "%s %s\n" (strings.Repeat $paramHeadingLevel "#") $name }}
27
27
{{- printf
28
- "| %s | %s | %s | %s | %s | %s |\n"
28
+ "| %s | %s | %s | %s | %s | %s | %s | \n"
29
29
(i18n "parameter_name")
30
30
(i18n "parameter_context")
31
31
(i18n "parameter_type")
32
32
(i18n "parameter_required")
33
33
(i18n "parameter_default")
34
34
(i18n "parameter_since")
35
+ (i18n "parameter_example")
35
36
}}
36
- {{- printf "| --- | :-: | :-: | :-: | :-: | :-: |\n" }}
37
+ {{- printf "| --- | :-: | :-: | :-: | :-: | :-: | :-: | \n" }}
37
38
{{- printf
38
- "| %s | %s | %s | %s | %s | %s |\n"
39
+ "| %s | %s | %s | %s | %s | %s | %s | \n"
39
40
$name
40
41
(cond (not $ctx) "-" $ctx | printf "`%s`")
41
42
$type
42
43
(cond (default false .required) "✓" "-")
43
44
(cond (isset . "default") (printf "`%s`" (string .default)) "-")
44
45
(cond (isset . "since") (printf "`%s`" (string .since)) "-")
46
+ (cond (isset . "example") (printf "`%s`" (string .example)) "-")
45
47
}}
46
48
{{- printf "\n" }}
47
49
{{- with .description }}
You can’t perform that action at this time.
0 commit comments