@redpanda-data/docs-extensions-and-macros 4.11.1 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/doc-tools.js +201 -10
- package/package.json +3 -1
- package/tools/property-extractor/COMPUTED_CONSTANTS.md +173 -0
- package/tools/property-extractor/Makefile +12 -1
- package/tools/property-extractor/README.adoc +828 -97
- package/tools/property-extractor/compare-properties.js +38 -13
- package/tools/property-extractor/constant_resolver.py +610 -0
- package/tools/property-extractor/file_pair.py +42 -0
- package/tools/property-extractor/generate-handlebars-docs.js +41 -8
- package/tools/property-extractor/helpers/gt.js +9 -0
- package/tools/property-extractor/helpers/includes.js +17 -0
- package/tools/property-extractor/helpers/index.js +3 -0
- package/tools/property-extractor/helpers/isEnterpriseEnum.js +24 -0
- package/tools/property-extractor/helpers/renderPropertyExample.js +6 -5
- package/tools/property-extractor/overrides.json +248 -0
- package/tools/property-extractor/parser.py +254 -32
- package/tools/property-extractor/property_bag.py +40 -0
- package/tools/property-extractor/property_extractor.py +1417 -430
- package/tools/property-extractor/requirements.txt +1 -0
- package/tools/property-extractor/templates/property-backup.hbs +161 -0
- package/tools/property-extractor/templates/property.hbs +104 -49
- package/tools/property-extractor/templates/topic-property-backup.hbs +148 -0
- package/tools/property-extractor/templates/topic-property.hbs +72 -34
- package/tools/property-extractor/tests/test_known_values.py +617 -0
- package/tools/property-extractor/tests/transformers_test.py +81 -6
- package/tools/property-extractor/topic_property_extractor.py +23 -10
- package/tools/property-extractor/transformers.py +2191 -369
- package/tools/property-extractor/type_definition_extractor.py +669 -0
- package/tools/redpanda-connect/helpers/renderConnectFields.js +33 -1
- package/tools/redpanda-connect/report-delta.js +132 -9
- package/tools/property-extractor/definitions.json +0 -245
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
{{#if is_deprecated}}
|
|
8
8
|
// tag::deprecated[]
|
|
9
9
|
{{/if}}
|
|
10
|
+
{{#if is_experimental_property}}
|
|
11
|
+
// tag::experimental[]
|
|
12
|
+
{{/if}}
|
|
10
13
|
{{#if cloud_supported}}
|
|
11
14
|
// tag::redpanda-cloud[]
|
|
12
15
|
{{/if}}
|
|
@@ -21,105 +24,134 @@
|
|
|
21
24
|
{{else}}
|
|
22
25
|
|
|
23
26
|
No description available.
|
|
27
|
+
|
|
24
28
|
{{/if}}
|
|
25
29
|
{{#if is_enterprise}}
|
|
26
30
|
|
|
27
31
|
ifndef::env-cloud[]
|
|
28
|
-
|
|
32
|
+
.Enterprise license required
|
|
33
|
+
[NOTE]
|
|
34
|
+
====
|
|
35
|
+
*Enterprise license required:* `{{enterprise_value}}`
|
|
36
|
+
|
|
37
|
+
For license details, see xref:get-started:licensing/index.adoc[Redpanda Licensing].
|
|
38
|
+
====
|
|
29
39
|
endif::[]
|
|
30
40
|
{{/if}}
|
|
31
41
|
{{#if cloud_byoc_only}}
|
|
42
|
+
|
|
32
43
|
ifdef::env-cloud[]
|
|
33
|
-
NOTE: This property is only
|
|
44
|
+
NOTE: This property is available only in Redpanda Cloud BYOC deployments.
|
|
34
45
|
endif::[]
|
|
35
|
-
{{/if}}
|
|
36
|
-
{{#if type}}
|
|
37
46
|
|
|
38
|
-
*Type:* {{type}}
|
|
39
47
|
{{/if}}
|
|
40
|
-
{{#if acceptable_values}}
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
[cols="1e,2a"]
|
|
50
|
+
|===
|
|
51
|
+
| Property | Value
|
|
52
|
+
|
|
53
|
+
| Type
|
|
54
|
+
| `{{type}}`{{#if (or enum items.enum)}} (enum){{/if}}
|
|
55
|
+
|
|
56
|
+
{{#if enum}}
|
|
57
|
+
| Accepted Values
|
|
58
|
+
| {{#each enum}}`{{this}}`{{#if (isEnterpriseEnum this ../x-enum-metadata)}} (Enterprise){{/if}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
59
|
+
{{else}}{{#if items.enum}}
|
|
60
|
+
| Accepted Values
|
|
61
|
+
| {{#each items.enum}}`{{this}}`{{#if (isEnterpriseEnum this ../items.x-enum-metadata)}} (Enterprise){{/if}}{{#unless @last}}, {{/unless}}{{/each}}
|
|
62
|
+
{{else}}{{#if acceptable_values}}
|
|
63
|
+
| Accepted values
|
|
64
|
+
| {{{acceptable_values}}}
|
|
65
|
+
{{/if}}{{/if}}{{/if}}
|
|
44
66
|
{{#if corresponding_cluster_property}}
|
|
45
67
|
|
|
46
|
-
|
|
68
|
+
| Related cluster property
|
|
69
|
+
| xref:reference:cluster-properties.adoc#{{corresponding_cluster_property}}[{{corresponding_cluster_property}}]
|
|
47
70
|
{{/if}}
|
|
48
71
|
{{#if (and minimum maximum)}}
|
|
49
72
|
|
|
50
|
-
|
|
73
|
+
| Range
|
|
74
|
+
| [`{{minimum}}`, `{{maximum}}`]
|
|
51
75
|
{{else}}
|
|
52
76
|
{{#if minimum}}
|
|
53
77
|
|
|
54
|
-
|
|
78
|
+
| Minimum
|
|
79
|
+
| `{{minimum}}`
|
|
55
80
|
{{/if}}
|
|
56
81
|
{{#if maximum}}
|
|
57
82
|
|
|
58
|
-
|
|
83
|
+
| Maximum
|
|
84
|
+
| `{{maximum}}`
|
|
59
85
|
{{/if}}
|
|
60
86
|
{{/if}}
|
|
61
87
|
{{#if (ne default undefined)}}
|
|
62
|
-
{{#if cloud_supported}}
|
|
63
88
|
|
|
89
|
+
| Default
|
|
90
|
+
| {{#if cloud_supported}}
|
|
64
91
|
ifdef::env-cloud[]
|
|
65
|
-
|
|
92
|
+
Available in the Redpanda Cloud Console
|
|
66
93
|
endif::[]
|
|
67
94
|
ifndef::env-cloud[]
|
|
68
|
-
|
|
95
|
+
`{{formatPropertyValue default type}}`{{#if default_human_readable}} ({{default_human_readable}}){{/if}}
|
|
96
|
+
endif::[]{{else}}
|
|
97
|
+
ifdef::env-cloud[]
|
|
98
|
+
Available in the Redpanda Cloud Console
|
|
69
99
|
endif::[]
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{{/if}}
|
|
100
|
+
ifndef::env-cloud[]
|
|
101
|
+
`{{formatPropertyValue default type}}`{{#if default_human_readable}} ({{default_human_readable}}){{/if}}
|
|
102
|
+
endif::[]{{/if}}
|
|
74
103
|
{{/if}}
|
|
75
104
|
|
|
76
|
-
|
|
105
|
+
| Nullable
|
|
106
|
+
| {{#if nullable}}Yes{{else}}No{{/if}}
|
|
77
107
|
|
|
78
108
|
ifndef::env-cloud[]
|
|
79
|
-
|
|
109
|
+
| Restored on xref:manage:whole-cluster-restore.adoc[Whole Cluster Restore]
|
|
110
|
+
| {{#if (ne gets_restored false)}}Yes{{else}}No{{/if}}
|
|
80
111
|
endif::[]
|
|
81
112
|
{{#if example}}
|
|
82
113
|
|
|
83
|
-
|
|
114
|
+
| Example
|
|
115
|
+
| {{{example}}}
|
|
84
116
|
{{/if}}
|
|
85
117
|
{{#if related_topics}}
|
|
86
118
|
{{#with (allTopicsConditional related_topics) as |sectionType|}}
|
|
87
119
|
|
|
88
120
|
{{#if (eq sectionType "cloud")}}
|
|
89
121
|
ifdef::env-cloud[]
|
|
90
|
-
|
|
91
|
-
|
|
122
|
+
| Related topics
|
|
123
|
+
|
|
|
92
124
|
{{#each ../related_topics}}
|
|
93
125
|
{{#with (parseRelatedTopic this)}}
|
|
94
|
-
* {{{value}}}
|
|
126
|
+
{{#if (gt ../../related_topics.length 1)}}* {{/if}}{{{value}}}
|
|
95
127
|
{{/with}}
|
|
96
128
|
{{/each}}
|
|
97
129
|
endif::[]
|
|
98
130
|
{{else if (eq sectionType "self-managed")}}
|
|
99
131
|
ifndef::env-cloud[]
|
|
100
|
-
|
|
101
|
-
|
|
132
|
+
| Related topics
|
|
133
|
+
|
|
|
102
134
|
{{#each ../related_topics}}
|
|
103
135
|
{{#with (parseRelatedTopic this)}}
|
|
104
|
-
* {{{value}}}
|
|
136
|
+
{{#if (gt ../../related_topics.length 1)}}* {{/if}}{{{value}}}
|
|
105
137
|
{{/with}}
|
|
106
138
|
{{/each}}
|
|
107
139
|
endif::[]
|
|
108
140
|
{{else}}
|
|
109
|
-
|
|
110
|
-
|
|
141
|
+
| Related topics
|
|
142
|
+
|
|
|
111
143
|
{{#each ../related_topics}}
|
|
112
144
|
{{#with (parseRelatedTopic this)}}
|
|
113
145
|
{{#if (eq type "cloud")}}
|
|
114
146
|
ifdef::env-cloud[]
|
|
115
|
-
* {{{value}}}
|
|
147
|
+
{{#if (gt ../../related_topics.length 1)}}* {{/if}}{{{value}}}
|
|
116
148
|
endif::[]
|
|
117
149
|
{{else if (eq type "self-managed")}}
|
|
118
150
|
ifndef::env-cloud[]
|
|
119
|
-
* {{{value}}}
|
|
151
|
+
{{#if (gt ../../related_topics.length 1)}}* {{/if}}{{{value}}}
|
|
120
152
|
endif::[]
|
|
121
153
|
{{else}}
|
|
122
|
-
* {{{value}}}
|
|
154
|
+
{{#if (gt ../../related_topics.length 1)}}* {{/if}}{{{value}}}
|
|
123
155
|
{{/if}}
|
|
124
156
|
{{/with}}
|
|
125
157
|
{{/each}}
|
|
@@ -129,11 +161,17 @@ endif::[]
|
|
|
129
161
|
{{#if aliases}}
|
|
130
162
|
|
|
131
163
|
// tag::self-managed-only[]
|
|
132
|
-
|
|
164
|
+
| Aliases
|
|
165
|
+
| {{join aliases ", "}}
|
|
133
166
|
// end::self-managed-only[]
|
|
134
167
|
{{/if}}
|
|
135
168
|
|
|
169
|
+
|===
|
|
170
|
+
|
|
136
171
|
---
|
|
172
|
+
{{#if is_experimental_property}}
|
|
173
|
+
// end::experimental[]
|
|
174
|
+
{{/if}}
|
|
137
175
|
{{#if cloud_supported}}
|
|
138
176
|
// end::redpanda-cloud[]
|
|
139
177
|
{{/if}}
|