Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/update-ozone-site-config-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions dev-support/ci/xml_to_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down