Skip to content

docs: add upgrade section#6891

Merged
chenjiahan merged 1 commit intomainfrom
docs_upgrade_0105
Jan 6, 2026
Merged

docs: add upgrade section#6891
chenjiahan merged 1 commit intomainfrom
docs_upgrade_0105

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Reorganizes and improves the Rsbuild upgrade and migration documentation, separate upgrade guides from migration guides, clarify navigation, and update all relevant links and section headers.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 5, 2026 14:15
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 5, 2026

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 1766c3e
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/695bc76ee4c28b0008f1c461
😎 Deploy Preview https://deploy-preview-6891--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67 (🟢 up 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

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

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @chenjiahan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the Rsbuild documentation by reorganizing and clarifying the upgrade and migration guides. It establishes a dedicated 'Upgrade' section, relocates relevant documents, and updates all associated links to enhance user experience and make it simpler for users to find information on upgrading their Rsbuild projects.

Highlights

  • Documentation Restructuring: A new dedicated 'Upgrade' section has been introduced under the guide directory for both English and Chinese documentation, improving the organization of upgrade-related content.
  • Content Relocation and Renaming: Existing documents related to upgrading Rsbuild (e.g., upgrade-rsbuild.mdx and rsbuild-0-x.mdx) have been moved from their previous locations (basic and migration directories, respectively) into the new upgrade section and renamed for clarity.
  • Link and Navigation Updates: All internal links pointing to the moved upgrade documents have been updated across the documentation, including in v1-0.mdx and build-performance.mdx, to ensure correct navigation within the reorganized structure.
  • Improved Clarity: The changes explicitly separate upgrade guides from general migration guides, making it easier for users to distinguish between upgrading Rsbuild versions and migrating from other tools.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively reorganizes the documentation by separating 'upgrade' guides from 'migration' guides, which greatly improves clarity. The changes include moving files, updating navigation, and adjusting links, all of which have been done correctly. I've identified a couple of minor areas for improvement regarding terminology consistency and JSON file formatting for better maintainability. Overall, this is a great improvement to the documentation structure.

"vite-plugin",
"modern-builder"
]
["webpack", "cra", "vue-cli", "vite", "vite-plugin", "modern-builder"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

While this single-line array is valid JSON, a multi-line format is generally more maintainable. It makes version control diffs cleaner when adding or removing items. Consider reverting to the multi-line format for better readability and easier future modifications.

Suggested change
["webpack", "cra", "vue-cli", "vite", "vite-plugin", "modern-builder"]
[
"webpack",
"cra",
"vue-cli",
"vite",
"vite-plugin",
"modern-builder"
]

@@ -1,4 +1,4 @@
# Migrating from Rsbuild 0.x
# Upgrading from 0.x to v1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The new title 'Upgrading from 0.x to v1' is much clearer. To maintain consistency with this change, consider updating the description on line 3. The term 'migration reference' could be changed to 'upgrade guide' to align with the new 'upgrade' terminology used throughout this PR.

"vite-plugin",
"modern-builder"
]
["webpack", "cra", "vue-cli", "vite", "vite-plugin", "modern-builder"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

While this single-line array is valid JSON, a multi-line format is generally more maintainable. It makes version control diffs cleaner when adding or removing items. Consider reverting to the multi-line format for better readability and easier future modifications.

Suggested change
["webpack", "cra", "vue-cli", "vite", "vite-plugin", "modern-builder"]
[
"webpack",
"cra",
"vue-cli",
"vite",
"vite-plugin",
"modern-builder"
]

@@ -1,4 +1,4 @@
# 从 Rsbuild 0.x 迁移
# 从 0.x 升级到 v1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The new title '从 0.x 升级到 v1' (Upgrading from 0.x to v1) is a good change. To maintain consistency, consider updating the description on line 3. The character '迁移' (migrate) could be changed to '升级' (upgrade) to align with the new terminology. For example, '你可以参考此文档来迁移' could become '你可以参考此文档来升级'.

Copy link
Copy Markdown
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 reorganizes Rsbuild's documentation by separating upgrade guides from migration guides into distinct sections, improving navigation and clarity for users looking to upgrade versus migrate from other tools.

Key Changes:

  • Creates a new "upgrade" section in the documentation with its own navigation entry
  • Moves upgrade-related content from the "basic" section to the new "upgrade" section
  • Renames the v0-to-v1 migration guide to clarify it's about upgrading between Rsbuild versions
  • Updates all internal documentation links to reflect the new structure

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/docs/{en,zh}/guide/upgrade/v0-to-v1.mdx Updated title to emphasize upgrading between Rsbuild versions rather than general migration
website/docs/{en,zh}/guide/upgrade/upgrade-rsbuild.mdx Moved from basic section; English title updated to use gerund form "Upgrading"
website/docs/{en,zh}/guide/upgrade/_meta.json New metadata file defining page order in the upgrade section
website/docs/{en,zh}/guide/optimization/build-performance.mdx Updated internal link to point to new upgrade section location
website/docs/{en,zh}/guide/migration/_meta.json Removed v0-to-v1 entry as it moved to upgrade section
website/docs/{en,zh}/guide/basic/_meta.json Removed upgrade-rsbuild entry as it moved to upgrade section
website/docs/{en,zh}/guide/_meta.json Added new "upgrade" section header between optimization and migration sections
website/docs/{en,zh}/community/releases/v1-0.mdx Updated internal link to v0-to-v1 guide in new location

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit ba16f8b into main Jan 6, 2026
17 checks passed
@chenjiahan chenjiahan deleted the docs_upgrade_0105 branch January 6, 2026 02:11
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.

2 participants