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.

Site-level indexes

Opt in to llms.txt, llms-full.txt, and named subset bundles, all generated by the same renderer that serves each page, so every Markdown file on your site says the same thing.

Beyond the docs collection

Point collections at a changelog, release notes, or anything with its own route file and those pages get Markdown routes and index entries too. Pages you don’t list are left alone rather than linked to a 404.

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.