Skip to content

docs: fix various documentation errors#5903

Merged
chenjiahan merged 6 commits intomainfrom
copilot/fix-ca9b8586-eac0-477a-9884-d2d5381471b6
Aug 21, 2025
Merged

docs: fix various documentation errors#5903
chenjiahan merged 6 commits intomainfrom
copilot/fix-ca9b8586-eac0-477a-9884-d2d5381471b6

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 21, 2025

Fixed several documentation errors found across the website/docs directory, including typos, grammatical issues, and terminology inconsistencies:

Issues Fixed

API Usage Error

  • website/docs/en/api/javascript-api/instance.mdx: Fixed incorrect API usage where api.getNormalizedConfig() should be rsbuild.getNormalizedConfig() in the example code for the rsbuild.getNormalizedConfig method.

Punctuation Inconsistencies

  • website/docs/en/api/javascript-api/instance.mdx: Fixed Chinese punctuation (:) used in English documentation. Changed "Version:" and "Example:" to "Version:" and "Example:" for consistency with English style.

Grammar Errors

  • website/docs/en/api/start/index.mdx: Fixed redundant pronoun in "which you can use it according to" → "which you can use according to"
  • website/docs/en/guide/framework/preact.mdx: Fixed multiple grammar issues:
    • "Prefresh need" → "Prefresh needs" (subject-verb agreement)
    • Improved sentence structure with proper punctuation
    • "hook should start" → "hooks should start" (plural consistency)

Missing Articles

  • website/docs/en/config/output/filename.mdx: Added missing article in "preventing bundler from" → "preventing the bundler from"

Word Usage Consistency

  • website/docs/en/guide/advanced/browser-compatibility.mdx: Fixed "can not" → "cannot" for standard usage
  • website/docs/en/guide/migration/rsbuild-0-x.mdx: Fixed "can not" → "cannot" and "and In" → "and in" (capitalization)

Verification

  • All changes have been linted and pass existing style checks
  • Corresponding Chinese documentation was reviewed for consistency and found to be correct
  • Changes are minimal and surgical, affecting only the specific errors identified
  • No functional code or working documentation was unnecessarily modified

These fixes improve the overall quality and consistency of the Rsbuild documentation while maintaining the existing structure and content.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit f525a41
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a6b3233352c2000978cf04
😎 Deploy Preview https://deploy-preview-5903--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: 74 (no change from production)
Accessibility: 97 (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.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 5 commits August 21, 2025 05:38
Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
Co-authored-by: chenjiahan <7237365+chenjiahan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix various documentation errors found across the website/docs directory, including typos, grammatical issues, and terminology inconsistencies. - Do not need to update the cpsell config. - Avoid making too many changes in a single PR; limit to less th... docs: fix various documentation errors across website/docs directory Aug 21, 2025
Copilot AI requested a review from chenjiahan August 21, 2025 05:49
@chenjiahan chenjiahan changed the title docs: fix various documentation errors across website/docs directory docs: fix various documentation errors Aug 21, 2025
@chenjiahan chenjiahan marked this pull request as ready for review August 21, 2025 05:59
Copilot AI review requested due to automatic review settings August 21, 2025 05:59
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 fixes various documentation errors across the Rsbuild website documentation to improve consistency and correctness. The changes primarily address API usage errors, punctuation inconsistencies, grammar issues, and word usage standardization.

  • Fixed incorrect API usage example in JavaScript API documentation
  • Corrected punctuation and grammar issues throughout multiple documentation files
  • Standardized word usage for better consistency

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/docs/en/guide/migration/rsbuild-0-x.mdx Fixed "can not" → "cannot" and capitalization error
website/docs/en/guide/framework/preact.mdx Corrected subject-verb agreement and plural consistency
website/docs/en/config/output/filename.mdx Added missing article "the" before "bundler"
website/docs/en/api/start/index.mdx Removed redundant pronoun "it"
website/docs/en/api/javascript-api/instance.mdx Fixed API usage example and Chinese punctuation marks

@chenjiahan chenjiahan merged commit c343748 into main Aug 21, 2025
20 of 21 checks passed
@chenjiahan chenjiahan deleted the copilot/fix-ca9b8586-eac0-477a-9884-d2d5381471b6 branch August 21, 2025 06:01
@chenjiahan chenjiahan mentioned this pull request Aug 21, 2025
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