tauri-docs icon indicating copy to clipboard operation
tauri-docs copied to clipboard

update starlight and astro ecosystem pkgs

Open vasfvitor opened this issue 8 months ago • 2 comments

was doing it on renovate pr but I guess it would be best if we had some eyes in it before merging

  • [ ] check if starlight pnpm patch is working fine
  • [ ] fix src\content\config.ts
  • [ ] fix toc
  • [ ] fix overrides
  • [ ] fix Astro.props usage
  • [ ] fix
  • [ ] fix some more

https://docs.astro.build/en/guides/upgrade-to/v5/ https://github.com/tauri-apps/tauri-docs/pull/2519/files

image

what I tried:

  • removing sidebar entry at astro config - doesn't work
  • removing blog-plugin - fixes it
  • empty sidebar entry - doesn't work
  • changing plugins order - doesn't work

what can be tried:

  • checking where the issue comes from, is it from starlight-utils or starlight-blog?

starlight-utils/middleware.ts:65:15

Blog cannot be used with multi-sidebar.

Each top-level sidebar item in the Starlight config must be either a group or autogenerated.

See https://starlight.astro.build/guides/sidebar/#groups and https://starlight.astro.build/guides/sidebar/#autogenerated-groups for more details.

edit 30-05

it seems that starlightBlog({ authors, navigation: 'none' }), setting the navigation option to 'none' fixed the current issue. It appears to be that the plugin was trying to override ThemeSelect/Header to place /blog and the error did not reflected the actual issue.

but now the error happens when navigating to /blog:

All posts cannot be used with multi-sidebar.
 
   Each top-level sidebar item in the Starlight config must be either a group or autogenerated.
 
   See https://starlight.astro.build/guides/sidebar/#groups and https://starlight.astro.build/guides/sidebar/#autogenerated-groups for more details.

image

vasfvitor avatar Mar 05 '25 18:03 vasfvitor