docs(plugin-rss): enrich feed.test usage example#3239
Conversation
Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com>
feed.test usage example
Deploying rspress-v2 with
|
| Latest commit: |
567b442
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f9bcf3d6.rspress-v2.pages.dev |
| Branch Preview URL: | https://copilot-add-rss-test-configu.rspress-v2.pages.dev |
There was a problem hiding this comment.
Pull request overview
Updates @rspress/plugin-rss documentation to better explain FeedChannel.test by adding a practical callback example for filtering blog routes, keeping English and Chinese docs aligned.
Changes:
- Added a concrete
feed.testcallback example demonstrating inclusion/exclusion of specific routes. - Placed the example directly under the
testoption for easier discoverability. - Mirrored the change in both
enandzhdocumentation for locale parity.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/docs/zh/plugin/official-plugins/rss.mdx | Adds a feed.test callback example under the test option in Chinese docs. |
| website/docs/en/plugin/official-plugins/rss.mdx | Adds the same feed.test callback example under the test option in English docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis
Found 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
The
plugin-rssdocs only described thetestoption by type, without showing a practical callback example. This update adds a clearer example for a common case: including blog article pages while excluding the blog index route.Docs update
feed.testfunction example to the@rspress/plugin-rssdocs.testoption inFeedChannel, where users look for matching behavior details.Locale parity
Example added
What this clarifies
testcan be a callback, not just a string/regexp matcher.Screenshot
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.