talira

Starlight Page Actions

A Starlight plugin that adds page action buttons to your documentation

open sourceMITself-hostablefree

Starlight Page Actions adds buttons to every page of a Starlight docs site: Copy Markdown, View in Markdown, and an Open menu that sends the page to ChatGPT, Claude, Cursor, GitHub Copilot, Perplexity, T3 Chat or v0 with a prompt you can customise, plus an optional Share menu for social networks, email and messaging apps. It publishes the pages' original .md and .mdx source files next to the site and builds an llms.txt index of every page when you give it a base URL. You can add your own actions, place the buttons under the title or in the table of contents, translate prompts per locale and turn the buttons off on single pages. Daniel Castillo maintains it under the MIT licence.

Problems it solves

  • add a copy page as Markdown button to every page of our docs
  • let readers open a docs page in ChatGPT or Claude with one click to ask questions about it
  • readers paste our docs into AI chats and lose the formatting; give them the clean Markdown source
  • put Open in Cursor and Open in Copilot links on our developer documentation
  • add share buttons for LinkedIn, X, Bluesky and email to documentation pages
  • serve a .md version of each docs page that agents can fetch directly
  • customise the prompt that gets sent to the AI when someone opens a docs page in a chatbot
  • hide the AI buttons on changelog and legal pages but keep them everywhere else
  • generate an llms.txt list of all our documentation URLs when the docs site builds

Features

  • Copy Markdown button that copies the page's Markdown
  • View in Markdown link to the page's source
  • Open menu for ChatGPT, Claude, Cursor, GitHub Copilot, Perplexity, T3 Chat and v0
  • custom prompt with the page URL placed where you want it
  • custom actions of your own
  • optional Share menu: LinkedIn, X, Threads, Bluesky, Facebook, Reddit, Hacker News, email, WhatsApp and Telegram
  • buttons below the page title or in the table of contents on desktop
  • per-locale prompts and actions
  • turn the actions off per page in frontmatter
  • copies the original .md and .mdx files into the build
View 1 more
  • llms.txt index of all documentation URLs when baseUrl is set

Limitations

  • Doesn't create llms.txt without a base URL: the file is generated only when baseUrl is configured1

Alternatives

The same job

These do what Starlight Page Actions does.

  1. starlight-llm-actions Starlight plugin: Page Actions dropdown with Copy/View/PDF and Open-in-LLM buttons
  2. starlight-llms-txt Generate llms.txt files to train large language models on your Starlight documentation website

Compare Starlight Page Actions with the top 3