Show a cover image on the GitHub dsh-plugin topic page - #33
Merged
Merged
Conversation
Topic cards scrape relative README images from the repo. jsDelivr CDN URLs were skipped, which is why dsh-remote had no thumbnail next to other dsh-plugin projects. Add a 1280x640 docs/cover.png crop of the workspace picker and point README screenshots at local paths. Co-authored-by: 兰州小红鸡 <flyphp@outlook.com>
flymysql
marked this pull request as ready for review
September 16, 2026 09:01
cursor Bot
pushed a commit
that referenced
this pull request
Sep 16, 2026
…fix PR #33 already landed the relative-path README screenshots. Keep this branch's designed docs/cover.png + cover.html, and fold in the 0.8.17 Windows remote-tree ENOENT fix from main. Co-authored-by: 兰州小红鸡 <flyphp@outlook.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.
GitHub topic cards (https://github.com/topics/dsh-plugin) thumbnail in-repo README images with a relative path, the same pattern used by plugins like
dsh-dream-skin(docs/screenshots/preview.png) anddsh-file-attachment(docs/demo.gif).dsh-remotehad screenshots, but they were pointed at jsDelivr (cdn.jsdelivr.net/gh/...). That CDN is fine for humans and npm, but GitHub’s topic crawler skips it, so the card showed no cover.usesCustomOpenGraphImageis also false (Social preview was never uploaded).The cover
dsh-remote cover
Designed rather than cropped: wordmark, tagline and feature chips next to the real workspace picker in a window frame, on the
#7a3ef3accent already used by the topic badge.docs/cover.htmlis the source of truth — edit the HTML and re-render with headless Chrome at 2×, then downscale to 1280×640 (command indocs/promote.md) so the type stays crisp. The screenshot inside the frame is the existingdocs/ui-picker-panel.png, cropped by CSS to the dialog card so none of the dimmed page behind the modal shows.Changes
docs/cover.png(1280×640, GitHub's recommended social size, under 1 MB) +docs/cover.htmlthat renders itREADME.md/README.zh.md<img>tags switched from jsDelivr todocs/*.pngscreenshots.jsonfor marketplace previewsAfter merge, GitHub may take a little while to recrawl the topic page.
Optional extra (no public API): Settings → General → Social preview → Upload the same
docs/cover.pngso Slack/X unfurls match.To show artifacts inline, enable in settings.