Starlight Page Actions v0.6.0 is here
This release adds more AI destinations to the actions menu and improves the experience for multilingual documentation sites.
These are the most important changes.
New actions for Cursor, Perplexity, and GitHub Copilot
Starlight Page Actions now includes built-in actions for Cursor, Perplexity, and GitHub Copilot.
They join the existing ChatGPT, Claude, T3 Chat, v0, and Markdown actions, giving readers more options to open the current documentation page in the AI tool they already use.
These new actions are disabled by default, so you can enable only the ones that make sense for your docs.
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import starlightPageActions from "starlight-page-actions";
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightPageActions({
actions: {
cursor: true,
perplexity: true,
githubCopilot: true,
},
}),
],
title: "My Docs",
}),
],
});
Internationalized prompts and custom actions
The plugin now supports locale-specific prompts and custom action labels through the new locales option.
The root locale keeps using the top-level configuration, while each additional locale can override only the parts that need to change. That means you can translate the prompt sent to AI tools, translate custom action labels, or point a custom action to a localized URL without duplicating the entire setup.
starlightPageActions({
prompt: "Read {url} and explain its main points briefly.",
actions: {
custom: {
sciraAi: {
label: "Open in Scira AI",
href: "https://scira.ai/?q=",
},
},
},
locales: {
es: {
prompt: "Lee {url} y explica brevemente sus puntos principales.",
actions: {
custom: {
sciraAi: {
label: "Abrir en Scira AI",
},
},
},
},
},
});
Try it out and let me know what you think!