fix: replace broken external Bazel icon with inline SVG - #87
Closed
AlexanderLanin with Copilot wants to merge 3 commits into
Closed
fix: replace broken external Bazel icon with inline SVG#87AlexanderLanin with Copilot wants to merge 3 commits into
AlexanderLanin with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
AlexanderLanin
August 7, 2026 06:17
View session
Co-authored-by: AlexanderLanin <5074553+AlexanderLanin@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Bazel icon rendered as a broken image (
[Bazel]) because it was loaded fromhttps://bazel.build/_pwa/bazel/icons/icon-72x72.png— an external URL that is no longer reliably accessible.Changes
_icons.py(new) — single_bazel_svg(extra_attrs)helper producing the Bazel logo as an inline SVG; extracted to avoid a circular import between_html_common.py↔metrics_report.py_html_common.py—BAZEL_ICONnow uses_bazel_svg('class="icon-bazel"')instead of an<img>pointing at the external URLmetrics_report.py—render_bazel_icon()now uses_bazel_svg('width="16" height="16"')for the markdown report; removedBAZEL_ICON_URLconstanttests/test_repo_overview.py— updated assertion to match the new SVG outputThe icon is now fully self-contained — no external HTTP requests, no fragile CDN dependency.