@redpanda-data/docs-extensions-and-macros 5.47.3 → 5.48.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/package.json
CHANGED
|
@@ -424,11 +424,17 @@ function normalizeIncludes(propName, raw, warnings) {
|
|
|
424
424
|
*
|
|
425
425
|
* Two separate reasons, and only the first was obvious. `cloud_supported: false`
|
|
426
426
|
* says the control plane does not expose the property to customers. But
|
|
427
|
-
* cloud-docs also publishes no broker properties page
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
427
|
+
* cloud-docs also publishes no broker properties page at all, so a link to any
|
|
428
|
+
* broker-scope property dangles there however the install pack feels about it.
|
|
429
|
+
* That case cannot be read off `cloud_supported`: cloud_config.py annotates
|
|
430
|
+
* cluster scope only and leaves the field absent elsewhere, because "absent"
|
|
431
|
+
* means no opinion rather than false.
|
|
432
|
+
*
|
|
433
|
+
* Topic scope is not in that case. cloud-docs publishes a topic properties page
|
|
434
|
+
* that includes the docs topic-properties partial with the same tags as the docs
|
|
435
|
+
* page (every category, minus deprecated and exclude-from-docs), so a topic
|
|
436
|
+
* property missing from Cloud is missing from self-managed too, and
|
|
437
|
+
* `self-managed-only:` would only strip a working link.
|
|
432
438
|
*
|
|
433
439
|
* @param {Object} target - The property being linked to.
|
|
434
440
|
* @returns {string|null} A short reason, or null when the target is reachable.
|
|
@@ -436,7 +442,6 @@ function normalizeIncludes(propName, raw, warnings) {
|
|
|
436
442
|
function cloudUnreachable(target) {
|
|
437
443
|
if (target.cloud_supported === false) return 'cloud_supported: false';
|
|
438
444
|
if (target.config_scope === 'broker') return 'Cloud publishes no broker properties page';
|
|
439
|
-
if (target.config_scope === 'topic') return 'Cloud publishes no topic properties page';
|
|
440
445
|
return null;
|
|
441
446
|
}
|
|
442
447
|
|
|
@@ -177,7 +177,9 @@ function renderStub({ title, file, description, includePrefix, attributes, hasMe
|
|
|
177
177
|
* @param {string} params.navFile - Consumer nav.adoc path
|
|
178
178
|
* @param {string} params.plugin - Plugin command name (e.g. ai)
|
|
179
179
|
* @param {string} params.includePrefix - Antora resource prefix for includes
|
|
180
|
-
* @param {Array<string>} [params.attributes] - Page attributes for new stubs
|
|
180
|
+
* @param {Array<string>} [params.attributes] - Page attributes for new stubs.
|
|
181
|
+
* Defaults to none: a page's maturity is a documentation-team decision, so
|
|
182
|
+
* a consumer that wants a label on new stubs passes it with --attribute.
|
|
181
183
|
* @param {boolean} [params.dryRun]
|
|
182
184
|
* @returns {Object} { created, deleted, keptNonStub, navUpdated, renameCandidates }
|
|
183
185
|
*/
|
|
@@ -187,7 +189,7 @@ function reconcileStubs({
|
|
|
187
189
|
navFile,
|
|
188
190
|
plugin,
|
|
189
191
|
includePrefix,
|
|
190
|
-
attributes = [
|
|
192
|
+
attributes = [],
|
|
191
193
|
dryRun = false
|
|
192
194
|
}) {
|
|
193
195
|
const managedStubRe = new RegExp(`include::[^\\[]*(?:partial|page)\\$[^\\[]*rpk-${plugin}/([\\w.-]+\\.adoc)\\[`)
|