Skip to content

adds TOML support for built-in loaders#12029

Merged
sarah11918 merged 5 commits into5.12.0from
sarah11918-patch-1
Jul 17, 2025
Merged

adds TOML support for built-in loaders#12029
sarah11918 merged 5 commits into5.12.0from
sarah11918-patch-1

Conversation

@sarah11918
Copy link
Member

@sarah11918 sarah11918 commented Jul 15, 2025

Description (required)

Accompanies the new feature that adds TOML support to the file() and glob() loaders.

This PR:

  • updates all lists of supported content collection entry file types to include TOML
  • removes an example of writing a custom parser function to use TOML as a content collection entry

Considerations:

  • There isn't really a great spot to mention that this is since v5.12? We could update lists to say e.g.:

Collections stored locally in your project or on your filesystem can have entries of Markdown, MDX, Markdoc, YAML, TOML (added in v5.12), or JSON files:

For Astro version: 5.12. See astro PR #13941.

@sarah11918 sarah11918 added this to the 5.12.0 milestone Jul 15, 2025
@sarah11918 sarah11918 added improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah! labels Jul 15, 2025
@netlify
Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 72c242b
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6878df5d8b89e80008b2ca79
😎 Deploy Preview https://deploy-preview-12029--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Jul 15, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/content-collections.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@aditsachde
Copy link
Contributor

Thanks so much for making these updates, I think this looks good! Only note I have is that I updated the changeset in my PR to include a note about how the file() loader interacts with some quirks of the TOML format. I'm not sure if it's worth including in the docs – it seems intuitive enough to me, but I've also spent a lot of time staring at TOML, so I'm not a good judge there.

@sarah11918 sarah11918 changed the base branch from main to 5.12.0 July 17, 2025 11:33
sarah11918 and others added 2 commits July 17, 2025 09:19
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
@sarah11918 sarah11918 merged commit 9341739 into 5.12.0 Jul 17, 2025
6 checks passed
@sarah11918 sarah11918 deleted the sarah11918-patch-1 branch July 17, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants