fix: use PNG for d2 diagrams to fix GitHub icon rendering#387
fix: use PNG for d2 diagrams to fix GitHub icon rendering#387markphelps merged 2 commits intomainfrom
Conversation
Mintlify's CDN strips href attributes from SVG <image> elements, causing embedded base64 icons (like the GitHub octocat) to not render. Switching to PNG avoids this issue since rasterized content is preserved. Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
Pull Request ReviewThis PR successfully addresses the issue of GitHub icons not rendering in production due to Mintlify's CDN sanitization of SVG files. The solution is clean, well-executed, and follows the repository's conventions. ✅ Strengths1. Code Quality & Best Practices
2. Documentation Changes
3. File Management
4. Technical Approach
🔍 ObservationsImage File Size
No Regression Risk
✅ Security, Performance & TestingSecurity: No concerns. This is a documentation-only change with image format conversion. Performance: Minimal impact. PNG files may be slightly larger, but:
Testing: The PR description indicates this fixes the production rendering issue. Recommend verifying:
📋 RecommendationsOptional Enhancement (not blocking):
SummaryThis is a high-quality PR that solves a production issue with a straightforward, well-documented solution. The changes are minimal, focused, and follow all repository conventions outlined in CLAUDE.md. Recommendation: Approve and merge ✅ The fix is production-ready and addresses the root cause effectively. |
Summary
hrefattributes from<image>elements, which causes embedded base64 icons (like the GitHub octocat) to not render on the production siteenvironments.mdxandstorage.mdxto reference.pnginstead of.svg