Skip to content

fix(readme): restore banner with packaged asset#3

Closed
pyyush wants to merge 1 commit intomainfrom
fix/readme-banner
Closed

fix(readme): restore banner with packaged asset#3
pyyush wants to merge 1 commit intomainfrom
fix/readme-banner

Conversation

@pyyush
Copy link
Copy Markdown
Owner

@pyyush pyyush commented Apr 2, 2026

Why
The README banner was rendering as a broken image because the GitHub raw-hosted URL in the README was returning 404.

What changed

  • Switched the README banner to a relative packaged asset path.
  • Added assets/readme-banner.svg to the npm package file whitelist so the npm package page can resolve it too.

Verification

  • npm pack --dry-run --json includes assets/readme-banner.svg

Risk

  • This relies on GitHub and npm continuing to resolve packaged relative README assets, which is the standard path and safer than the broken raw URL.

The GitHub raw-hosted image URL currently renders as a broken image in the
README view. This switches the banner back to a repo-relative asset and includes
that asset in the npm package files so both GitHub and the npm package page can
resolve it without depending on GitHub raw URL serving.

Constraint: Keep the fix narrowly scoped to the README banner path and package file whitelist
Rejected: Keep using a raw.githubusercontent.com URL | current raw URLs return 404 in practice for this repo and break the rendered README
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep README images on packaged relative paths or another verified stable host; do not assume raw GitHub URLs will render reliably
Tested: npm pack --dry-run --json includes assets/readme-banner.svg and README references the packaged relative asset
Not-tested: Live npm/GitHub renderer refresh after merge; behavior is inferred from the packaged relative path and current broken raw URL evidence
@pyyush pyyush closed this Apr 2, 2026
@pyyush pyyush deleted the fix/readme-banner branch April 2, 2026 21:26
@pyyush pyyush restored the fix/readme-banner branch April 2, 2026 21:26
@pyyush pyyush deleted the fix/readme-banner branch April 2, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant