diff --git a/.github/workflows/update-ozone-site-config-doc.yml b/.github/workflows/update-ozone-site-config-doc.yml index 73c839c14d7c..e5196778a4ad 100644 --- a/.github/workflows/update-ozone-site-config-doc.yml +++ b/.github/workflows/update-ozone-site-config-doc.yml @@ -73,7 +73,7 @@ jobs: exit 0 fi - TARGET_FILE="$TARGET_DIR/05-appendix.md" + TARGET_FILE="$TARGET_DIR/99-appendix.md" echo "Checking against $TARGET_FILE" # Copy new file to target location diff --git a/dev-support/ci/xml_to_md.py b/dev-support/ci/xml_to_md.py index e3c6ef14ebc6..54e885c28337 100644 --- a/dev-support/ci/xml_to_md.py +++ b/dev-support/ci/xml_to_md.py @@ -106,10 +106,14 @@ def generate_markdown(properties): |:-----|:--------------|:-----|:------------| """ + placeholder_pattern = re.compile(r'(\$)?\{([^}]+)\}') + for prop in sorted(properties.values(), key=lambda p: p.name): - # Escape pipe characters in description to prevent breaking the table + # Escape pipe characters and wrap {placeholders} in backticks description = prop.description.replace('|', '\\|') - value = prop.value if prop.value else '' + description = placeholder_pattern.sub(r'`\1{\2}`', description) + value = prop.value.replace('|', '\\|') if prop.value else '' + value = placeholder_pattern.sub(r'`\1{\2}`', value) if value else '' markdown += f"| `{prop.name}` | {value} | {prop.tag} | {description} |\n"