-
-
Notifications
You must be signed in to change notification settings - Fork 201
docs(theme): Clarify LastUpdated configuration and customization guidance #2901
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
|
|
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com>
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 corrects the documentation for the LastUpdated component configuration in Rspress. The original documentation incorrectly showed that lastUpdated could be configured as an object with options like text, format, and timezone, when in reality Rspress only supports a boolean value (lastUpdated: true). The PR also adds guidance on how to customize the component through the eject feature.
- Simplified
lastUpdatedconfiguration from object format to booleantrue - Added customization instructions directing users to eject and modify the component
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/docs/zh/ui/components/last-updated.mdx | Updated Chinese documentation to show correct boolean configuration and added eject customization instructions |
| website/docs/en/ui/components/last-updated.mdx | Updated English documentation to show correct boolean configuration and added eject customization instructions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis📊 Quick Summary (Click to expand)
📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Rspress only supports
lastUpdated: true; formatting customization requires ejecting the LastUpdated component.themeConfig.lastUpdated: true.rspress ejectand edittheme/components/LastUpdated/index.tsxfor custom labels/formatting.Example:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.