Getting Started
Starlight Page Actions is a Starlight plugin that adds page action buttons to your documentation like the ones you see above.
- A “Copy Markdown” button to copy the raw markdown content
- An “Open” dropdown menu with options to open the page in AI chat services (ChatGPT, Claude, etc.)
- Automatic generation of the
llms.txtfile with all documentation URLs during build
Prerequisites
Section titled “Prerequisites”You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
Installation
Section titled “Installation”-
Install it by running the following command in your terminal:
Terminal window npm install starlight-page-actionsTerminal window yarn add starlight-page-actionsTerminal window pnpm add starlight-page-actions -
Configure the plugin in your Starlight configuration in the
astro.config.mjsfile.astro.config.mjs import starlight from '@astrojs/starlight'import { defineConfig } from 'astro/config'import starlightPageActions from 'starlight-page-actions'export default defineConfig({integrations: [starlight({plugins: [starlightPageActions()],title: 'My Docs',}),],}) -
Start the development server to preview the plugin in action.