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

fix(docs): Update ContentSlot Documentation #2713

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

jacstrong
Copy link
Contributor

Update ContentSlot Documentation

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

As far as I can tell custom ContentSlot components need to be in the components/content directory. I spent a whole day trying to figure out how to get these working, then simply moved the components to the content directory and it worked. I double checked this functionality with the stackblitz environment linked below. I tried to find the reference code that would actually enforce this, but I couldn't find it.

https://stackblitz.com/edit/github-syrfpd-jmspgd?file=README.md

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

As far as I can tell custom ContentSlot components need to be in the `components/content` directory. I spent a whole day trying to figure out how to get these working, then simply moved the components to the content directory and it worked. I double checked this functionality with the stackblitz environment linked below. I tried to find the reference code that would actually enforce this, but I couldn't find it.

https://stackblitz.com/edit/github-syrfpd-jmspgd?file=README.md
Copy link
Member

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@farnabaz farnabaz merged commit 5f2a0b1 into nuxt:main Jul 17, 2024
1 check 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.

2 participants