Starlight plugin: Page Actions dropdown with Copy/View/PDF and Open-in-LLM buttons
open sourceMITself-hostablefree
starlight-llm-actions adds a Page Actions dropdown beside the title of every Starlight docs page: copy the page as Markdown, view it as Markdown, save it as a PDF, or open it in an AI chat. ChatGPT, Claude, Gemini, GitHub Copilot and Perplexity are on by default and eleven more (Cursor, DeepSeek, Grok, Mistral, T3 Chat and others) can be switched on; services that can't take a prefilled prompt get a copy-and-open fallback. It serves a .md route for every page, optionally writes llms.txt, llms-full.txt and named subset files, and can add a print notice with the canonical URL and date to PDFs. Holden Hewett publishes it under the MIT licence.
Problems it solves
- a copy page dropdown for our docs like the ones on big developer docs sites
- let people send a documentation page to Gemini, Perplexity or Claude with one click
- serve every docs page at a .md URL so agents can read it without the HTML
- readers want to save a docs page as a PDF with the date and a link back to the live page
- add Open in DeepSeek, Grok or Mistral options for readers who use other chatbots
- point agents to the Markdown version of each page with a link rel alternate tag
- bundle our docs into llms-full.txt plus separate files for each product area
- opt individual docs pages out of the AI buttons with a frontmatter flag
Features
- Page Actions dropdown next to the page title, opened by click or hover
- copy page as Markdown and view as Markdown
- save as PDF, with an optional print notice carrying the live URL, date and logo (off by default)
- open in ChatGPT, Claude, Gemini, GitHub Copilot and Perplexity by default
- 11 more providers to switch on: AI Studio, Cursor, DeepSeek, DuckDuckGo, Grok, HuggingChat, Kagi, Mistral, Phind, T3 Chat and You.com
- copy-and-open fallback for services that don't accept a prefilled prompt
- per-provider overrides for label, prompt, URL template and icon
- a .md route for every page in the chosen collections, at a configurable URL
- optional llms.txt, llms-full.txt and named subset files
- optional <link rel="alternate"> to each page's Markdown
View 1 more
- per-page opt-out in frontmatter
Limitations
Alternatives
The same job
These do what starlight-llm-actions does.
- Starlight Page Actions A Starlight plugin that adds page action buttons to your documentation
- starlight-llms-txt Generate llms.txt files to train large language models on your Starlight documentation website