Skip to content

Configure Page Actions

Starlight Page Actions allows you to customize which actions appear on your documentation pages, including built-in integrations with AI tools and custom actions.

By default, the plugin displays three actions: “Open in ChatGPT”, “Open in Claude”, and “View in Markdown”.

The plugin includes five built-in actions that you can enable or disable using the actions property:

  • chatgpt - Opens the current page in ChatGPT
  • claude - Opens the current page in Claude
  • t3chat - Opens the current page in T3 Chat (disabled by default)
  • v0 - Opens the current page in v0 (disabled by default)
  • markdown - View the page content in Markdown format

You can enable or disable any of these actions by setting them to true or false:

starlightPageActions({
actions: {
chatgpt: false, // Disable ChatGPT action
claude: true, // Enable Claude action
t3chat: true, // Enable T3 Chat action
v0: true, // Enable v0 action
markdown: false, // Disable Markdown action
},
});

You can add your own custom actions to integrate with additional tools or services. Custom actions are defined using the custom property with a unique key for each action.

starlightPageActions({
actions: {
custom: {
sciraAi: {
label: "Open in Scira AI",
href: "https://scira.ai/?q=",
},
},
},
});

You can mix default actions with custom actions. Custom actions will appear after the default actions:

starlightPageActions({
actions: {
chatgpt: false,
v0: true,
custom: {
sciraAi: {
label: "Open in Scira AI",
href: "https://scira.ai/?q=",
},
},
},
});