Skip to content

starlight-llm-actions

A Page Actions dropdown for Starlight. Copy as Markdown, view raw, save as PDF, or open the current page in ChatGPT, Claude, Gemini, GitHub Copilot, Perplexity, and a dozen other LLM chats.

One-line install

Drop the plugin into your astro.config.mjs plugins array and the dropdown appears next to your page title — no styling work, no UI plumbing.

Per-provider strategies

Each LLM gets the most reliable open-in path: prefilled URL where supported (ChatGPT, Perplexity, GitHub Copilot, T3 Chat, Cursor), copy-and-open fallback where it isn’t (Claude, Gemini, DeepSeek, Mistral, and friends).

Print-aware snapshots

Optional snapshot disclaimer renders only in @media print, with branding and live-URL/date stamps so PDFs that escape into the wild point readers back to the canonical page.

Per-page opt-out

Set llmActions: false in any page’s frontmatter to hide the dropdown — useful for marketing pages or pages with policy reasons not to expose raw markdown.

The dropdown next to the page title above is this plugin. Open it and try every action — this site is itself a deployment of the plugin. The Per-page opt-out demo shows what a page looks like with the dropdown disabled.