Skip to content

combination with plugin starlight-blog doesn't change folder labels #14

@gipo355

Description

@gipo355

Describe the bug

Hello! Been experimenting with starlight and found your very useful plugins

I wasn't able to get the blog and auto-sidebar to work together

While using both the https://github.com/HiDeoo/starlight-auto-sidebar and https://github.com/HiDeoo/starlight-blog plugins together, i can see the auto-sidebar picking up changes but the UI would not reflect the label

17:53:32 [watch] src/content/docs/api-reference/extra-form/_meta.yaml
17:53:32 [watch] src/content/docs/api-reference/extra-form/_meta.yaml
17:53:32 [starlight-auto-sidebar-loader] Reloaded data from api-reference/extra-form/_meta.yaml
17:53:32 [200] /welcome 30ms

disabling the blog plugin makes it work as expected.

To Reproduce

Follow the exact tutorials in both starlight-auto-sidebar and starlight-blog docs

the configurations:

starlight config:

    plugins: [
      starlightAutoSidebar(),
      starlightLinksValidator(),
      // starlightBlog({ }),
    ],

content.config:

export const collections = {
  docs: defineCollection({
    loader: docsLoader(),
    schema: docsSchema({
      extend: (context) => blogSchema(context),
    }),
  }),
  autoSidebar: defineCollection({
    loader: autoSidebarLoader(),
    schema: autoSidebarSchema(),
  }),
};

_meta.yaml config:

label: "Extra Form"

Expected behavior

The folder respects the _meta.yml even with the starlight-blog plugin active

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response

I'm wondering if i could do anything to get them to work together or if it's only me experiencing this problem since i didn't find any related issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions