Skip to content

docs: onctl social card for link previews - #1251

Merged
cdalar merged 1 commit into
mainfrom
docs-social-card
Oct 26, 2026
Merged

cdalar merged 1 commit into
mainfrom
docs-social-card

Conversation

@cdalar

@cdalar cdalar commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Sharing an onctl.sh link showed the stock Docusaurus social card (the green dinosaur), because themeConfig.image was still the template default. This replaces it with an onctl card.

onctl social card

  • docs/static/img/onctl-social-card.png: 1200x630, the site's dark theme (#14161a), the orange box logo, the hero headline and the onctl create command in JetBrains Mono. Rendered from HTML with headless Chrome.
  • themeConfig.image now points at it; the built page emits og:image as https://onctl.sh/img/onctl-social-card.png with twitter:card: summary_large_image.
  • Removed the three unreferenced Docusaurus template images (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

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
@cdalar
cdalar merged commit 0fb9d81 into main Oct 26, 2026
13 checks passed
@cdalar
cdalar deleted the docs-social-card branch October 26, 2026 14:34
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

⌂ 换网址