Repository navigation
docs: onctl social card for link previews - #1251
Merged
Merged
Conversation
Link previews of onctl.sh (WhatsApp, Slack, X, ...) showed the stock Docusaurus social card, since themeConfig.image was never changed from the template default. Replace it with a 1200x630 onctl card in the site's dark theme: the box logo, the hero headline, and the create command. Drop the three unreferenced Docusaurus template images (the old card, docusaurus.png, logo.svg) while here. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J3DrQy8Pdg8KsM31aMxJaM
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.
Sharing an onctl.sh link showed the stock Docusaurus social card (the green dinosaur), because
themeConfig.imagewas still the template default. This replaces it with an onctl card.docs/static/img/onctl-social-card.png: 1200x630, the site's dark theme (#14161a), the orange box logo, the hero headline and theonctl createcommand in JetBrains Mono. Rendered from HTML with headless Chrome.themeConfig.imagenow points at it; the built page emitsog:imageashttps://onctl.sh/img/onctl-social-card.pngwithtwitter:card: summary_large_image.docusaurus-social-card.jpg,docusaurus.png,logo.svg).Note: WhatsApp and friends cache link previews, so a chat that already previewed onctl.sh may keep the old image for a while after deploy.
🤖 Generated with Claude Code
https://claude.ai/code/session_01J3DrQy8Pdg8KsM31aMxJaM