Skip to content

Manually defined sidebars on custom pages do not work with the pluginΒ #18

@APickledWalrus

Description

@APickledWalrus

Describe the bug

Perhaps I have something configured incorrectly, but when using the plugin, the sidebar property of custom pages (StarlightPage component) no longer works. The sidebar is just empty.

To Reproduce

Create a custom page with a sidebar. I was able to reproduce using this example:

---
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
---

<StarlightPage
        frontmatter={{ title: 'test page'}}
        sidebar={[
            {
                label: 'Test Page',
                link: '/test',
            }
        ]}
/>

Without the plugin active, it generates as follows:
Image
When the plugin is enabled, the sidebar is no longer present:

Image

Expected behavior

Custom page appearance should be consistent regardless of whether the plugin is enabled (see screenshots above).

How often does this bug happen?

Every time

System Info

OS: macOS 15.7.2
Browsers:

  • Microsoft Edge Version 143.0.3650.96 (Official build) (arm64)
  • Safari Version 26.1 (20622.2.11.119.1)

Additional Context

Please let me know if there is anything else I can provide. Thanks for your time!

EDIT: To clarify, I am not expecting this plugin to work for custom pages, just the regular pages within the content/docs directory. Ideally, custom pages would just be skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamIssues that need to be addressed upstream in Starlight or another library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions