Disable Page Actions per Page
By default, page actions are enabled on all documentation pages. You can disable them on specific pages by extending the frontmatter schema and setting the pageActions property to false.
How to disable page actions per page
Section titled “How to disable page actions per page”-
You need to extend the Starlight schema in your
content.config.tsfile to include thepageActionsproperty.content.config.ts import { defineCollection } from "astro:content";import { docsLoader } from "@astrojs/starlight/loaders";export const collections = {docs: defineCollection({loader: docsLoader(),schema: docsSchema({extend: z.object({pageActions: z.boolean().optional().default(true),}),}),}),}; -
Once you’ve extended the schema, you can disable page actions on any page by adding
pageActions: falseto the frontmatter.---title: Getting Starteddescription: Learn how to get started with Starlight Page Actions.lastUpdated: 2025-12-05pageActions: false---Your page content here...