feat(docs): add sponsor heart icon and donate page#161
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
Adds a sponsor/donate entry point in the documentation site by introducing a navbar “heart” social link to a new /sponsor page containing USDT (TRC‑20) donation details and a QR code asset.
Changes:
- Add a custom heart icon to the VitePress navbar social links pointing to the sponsor page.
- Add a new
docs/sponsor.mdpage with wallet address and QR display. - Add the QR SVG asset to
docs/public/for static serving.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/sponsor.md | Adds a sponsor page with QR + wallet address and a network tip callout. |
| docs/public/usdt-qr.svg | Adds the static QR code SVG referenced by the sponsor page. |
| docs/.vitepress/config.mts | Adds a heart social link in the navbar that navigates to the sponsor page (base-aware). |
| <div style="text-align: center; margin: 2rem 0;"> | ||
| <img src="/usdt-qr.svg" alt="USDT TRC-20 wallet QR code" style="width: 240px; height: 240px;" /> | ||
| </div> |
There was a problem hiding this comment.
The QR code image uses a hard-coded absolute path (/usdt-qr.svg) inside raw HTML. With the docs base defaulting to /gitlab-mcp/ in config.mts, this will resolve to the site root and break on the deployed sub-path. Use a base-aware asset URL (e.g., VitePress withBase('/usdt-qr.svg') via a bound :src, or switch to Markdown image syntax if you want VitePress to automatically prefix the base).
| <div style="text-align: center; margin: 2rem 0;"> | |
| <img src="/usdt-qr.svg" alt="USDT TRC-20 wallet QR code" style="width: 240px; height: 240px;" /> | |
| </div> | |
|  |
|
🎉 This PR is included in version 6.35.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
/sponsorpagedocs/sponsor.mdwith USDT TRC-20 wallet address and QR codedocs/public/Closes #160
Test plan
DOCS_BASE=/ yarn docs:buildpasses