@redpanda-data/docs-extensions-and-macros 5.48.0 → 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
|
|