@redpanda-data/docs-extensions-and-macros 4.7.0 → 4.7.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
|
@@ -90,6 +90,8 @@ generate-docs:
|
|
|
90
90
|
@mkdir -p "$(OUTPUT_DIR)"
|
|
91
91
|
@cd $(TOOL_ROOT) && \
|
|
92
92
|
$(PYTHON) json-to-asciidoc/generate_docs.py --output-dir "$(OUTPUT_DIR)"
|
|
93
|
+
@echo "📄 Copying properties-output.json to $(OUTPUT_DIR)…"
|
|
94
|
+
@cp "$(TOOL_ROOT)/gen/properties-output.json" "$(OUTPUT_DIR)/"
|
|
93
95
|
@echo "✅ Docs generated at $(OUTPUT_DIR)"
|
|
94
96
|
|
|
95
97
|
# --- Debug helper to print all the key paths/vars ---
|
|
@@ -261,6 +261,12 @@ def generate_property_doc(key, value):
|
|
|
261
261
|
if prop_type in ["string", "array", "number", "boolean", "integer"]:
|
|
262
262
|
lines.append(f"*Type:* {prop_type}\n\n")
|
|
263
263
|
|
|
264
|
+
# Add aliases if they exist
|
|
265
|
+
aliases = value.get("aliases")
|
|
266
|
+
if aliases and len(aliases) > 0:
|
|
267
|
+
aliases_str = ", ".join(f"`{alias}`" for alias in aliases)
|
|
268
|
+
lines.append(f"*Aliases:* {aliases_str}\n\n")
|
|
269
|
+
|
|
264
270
|
if value.get("maximum") is not None and value.get("minimum") is not None:
|
|
265
271
|
lines.append(
|
|
266
272
|
f"*Accepted values:* [`{value.get('minimum')}`, `{value.get('maximum')}`]\n\n"
|