Skip to content

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.

  1. You need to extend the Starlight schema in your content.config.ts file to include the pageActions property.

    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),
    }),
    }),
    }),
    };
  2. Once you’ve extended the schema, you can disable page actions on any page by adding pageActions: false to the frontmatter.

    ---
    title: Getting Started
    description: Learn how to get started with Starlight Page Actions.
    lastUpdated: 2025-12-05
    pageActions: false
    ---
    Your page content here...