Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add content collection custom IDs section #10109

Merged
merged 6 commits into from
Nov 27, 2024

Conversation

HiDeoo
Copy link
Member

@HiDeoo HiDeoo commented Nov 26, 2024

Description (required)

As discussed on Discord, this PR adds back an equivalent of the “Defining custom slugs” section in the current version of the docs for the content collections page in the v5 docs.

The content is based on the current version but updated to match the new changes related to the Content Layer API.

A few notes:

  • It works with JSON files too.
  • The sentence about slug being a special, reserved property name not allowed in schema is removed, as it is not true anymore.
  • Not sure about the capitalization of IDs in the title.

Related issues & labels (optional)

  • Closes #
  • Suggested label: 5.0.0-beta

Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for astro-docs-2 failed. Why did it fail? →

Built without sensitive environment variables

Name Link
🔨 Latest commit 38ea757
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/674762e35ab13100081dc63a

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Nov 26, 2024

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.

@sarah11918 sarah11918 merged commit 621916c into withastro:5.0.0-beta Nov 27, 2024
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants