Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 17, 2025

Rspress only supports lastUpdated: true; formatting customization requires ejecting the LastUpdated component.

  • Docs (ZH/EN): update LastUpdated usage to show boolean themeConfig.lastUpdated: true.
  • Customization note: direct users to rspress eject and edit theme/components/LastUpdated/index.tsx for custom labels/formatting.

Example:

// rspress.config.ts
export default defineConfig({
  themeConfig: {
    lastUpdated: true,
  },
});

// For custom formatting: run `rspress eject LastUpdated` and edit
// theme/components/LastUpdated/index.tsx.
Original prompt

LastUpdated 的文档存在错误

Rspress 似乎仅提供了 lastUpdated: true 配置,如果有格式需求,需要使用 rspress eject 功能对 LastUpdated 组件进行修改


💡 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.

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ SoonIter
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@netlify
Copy link

netlify bot commented Dec 17, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit c5eac44
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/69425da6e010a90009161e49
😎 Deploy Preview https://deploy-preview-2901--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error in LastUpdated documentation Clarify LastUpdated configuration and customization guidance Dec 17, 2025
Copilot AI requested a review from SoonIter December 17, 2025 06:58
@SoonIter SoonIter changed the title Clarify LastUpdated configuration and customization guidance docs(theme): Clarify LastUpdated configuration and customization guidance Dec 17, 2025
@SoonIter SoonIter marked this pull request as ready for review December 17, 2025 07:21
Copilot AI review requested due to automatic review settings December 17, 2025 07:21
Copy link
Contributor

Copilot AI left a 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 lastUpdated configuration from object format to boolean true
  • 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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2025

Rsdoctor Bundle Diff Analysis

📊 Quick Summary (Click to expand)
Project Total Size Change
web 14.9 MB ➡️ -2.5 KB (-0.0%)

📁 web

Path: website/doc_build/web/rsdoctor-data.json

📌 Baseline Commit: e86fde2df5 | PR: #2319

Metric Current Baseline Change
📊 Total Size 14.9 MB 14.9 MB -2.5 KB (-0.0%)
📄 JavaScript 14.3 MB 14.3 MB -2.4 KB (-0.0%)
🎨 CSS 114.2 KB 114.2 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 512.4 KB 512.5 KB -84.0 B (-0.0%)

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

SoonIter and others added 2 commits December 17, 2025 15:36
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SoonIter SoonIter enabled auto-merge (squash) December 17, 2025 14:16
@SoonIter SoonIter merged commit 26532ec into main Dec 18, 2025
8 of 9 checks passed
@SoonIter SoonIter deleted the copilot/fix-lastupdated-documentation-error branch December 18, 2025 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants