Skip to content

Astro 5 + collection loaders + legacy collections support#2612

Merged
delucis merged 91 commits intowithastro:mainfrom
HiDeoo:hd-astro-v5
Dec 13, 2024
Merged

Astro 5 + collection loaders + legacy collections support#2612
delucis merged 91 commits intowithastro:mainfrom
HiDeoo:hd-astro-v5

Conversation

@HiDeoo
Copy link
Copy Markdown
Member

@HiDeoo HiDeoo commented Nov 18, 2024

Description

This PR is a draft adding Astro 5 support to Starlight, adding collection loaders for our content collections and support for legacy collections.

The first goal was to get everything working with Astro 5. There is room for improvements and potential refactoring, but the goal was to get everything in place first to get a better overview of what needs to be done and later iterate on it.

The MDX dependency case is temporarily workaround by making it a peer dependency of Starlight and installing it manually everywhere it's needed until we have a better solution (in discussion).

Note that the collection locations are not yet user-configurable.

Remaining tasks

  • Ensure all // TODO(HiDeoo) comments are addressed and removed
  • Figure out if legacy collections support should be documented more (it's only a sentence + link in the manual setup page now)
  • Peer dependency bump for @astrojs/starlight in some packages (see changesets for the one that needs an update)
  • Add changesets
  • Merge with Lunaria directives to ignore the changes to all code.mdx files
    • @lunaria-ignore:src/content/docs/**/code.mdx;src/content/docs/code.mdx;

Yoxnear pushed a commit to Yoxnear/starlight-custom that referenced this pull request Jul 23, 2025
…2612)

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <357379+delucis@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚨 action Changes to GitHub Action workflows 🌟 core Changes to Starlight’s main package 📚 docs Documentation website changes 🌟 docsearch Changes to Starlight’s DocSearch plugin i18n Anything to do with internationalization & translation efforts 🌟 markdoc Changes to Starlight’s Markdoc package 🌟 tailwind Changes to Starlight’s Tailwind package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants