-
Notifications
You must be signed in to change notification settings - Fork 2
feat: support linting site name usage #243
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
Conversation
🦋 Changeset detectedLatest commit: c2fd5d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis PR introduces a new linting rule ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (3)**/*.{js,ts,tsx,jsx,json,yml,yaml,md}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{js,ts,tsx,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (6)📚 Learning: 2025-07-09T02:31:06.588ZApplied to files:
📚 Learning: 2025-05-26T09:09:21.339ZApplied to files:
📚 Learning: 2025-05-29T16:25:28.086ZApplied to files:
📚 Learning: 2025-12-15T10:50:06.727ZApplied to files:
📚 Learning: 2025-07-09T02:33:05.638ZApplied to files:
📚 Learning: 2025-05-26T08:59:41.491ZApplied to files:
🧬 Code graph analysis (3)packages/doom/src/remarkrc.ts (1)
packages/doom/src/runtime/components/ExternalSiteLink.tsx (1)
packages/doom/src/remark-lint/site.ts (4)
🔇 Additional comments (11)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: JounQin <admin@1stg.me>
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds linting capabilities for validating site name usage in external site components. The linter checks that site references in MDX components match valid sites defined in the sites.yaml configuration file.
Changes:
- Added a new remark lint rule to validate site name attributes in external site components
- Updated error handling to throw errors in production and show warnings in development for invalid site names
- Registered the new lint rule in the remark configuration
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/doom/src/runtime/components/_ExternalSiteBase.tsx | Updated error handling to throw in production for invalid site names |
| packages/doom/src/runtime/components/ExternalSiteLink.tsx | Updated error handling to throw in production for invalid site names |
| packages/doom/src/remarkrc.ts | Registered the new site name lint rule |
| packages/doom/src/remark-lint/site.ts | Implemented new lint rule to validate site names against sites.yaml |
| packages/doom/src/remark-lint/index.ts | Exported the new site lint rule |
| .changeset/lucky-wolves-whisper.md | Added changeset entry for this feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.