Skip to content

Conversation

@SoonIter
Copy link
Member

Summary

docs: remove unused code

correct the usage of Link and Table

  1. Link: In basically all cases, we should use Link instead of using <a> to prevent page refreshes during navigation and automatically set target="_blank" rel="noreferrer when visiting trailing pages.

  2. Table: Completely use Rspress's default table, so remove
    unnecessary code

Related links

Checklist

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

Copilot AI review requested due to automatic review settings December 18, 2025 07:54
@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 52c221e
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6943b35117685e0008b8c0b9
😎 Deploy Preview https://deploy-preview-12498--rspack.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.

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: document release: document related release(mr only) labels Dec 18, 2025
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 refactors the codebase to standardize link handling and table rendering by replacing custom implementations with Rspress's built-in components.

  • Removes custom table component wrappers (Table, Tr, Td, Th) and their associated CSS styling
  • Replaces all <a> tags with Rspress's Link component for consistent navigation behavior
  • Updates the Table component to use Rspress's default MDX table component via getCustomMDXComponent()

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/theme/index.css Removes unused CSS styling for table links
website/components/builtIns/mdx-components.tsx Deletes entire file containing custom table component wrappers
website/components/builtIns/Table.tsx Refactors to use Rspress's MDX table component and adds Link override for markdown links
website/components/WebpackLicense.tsx Replaces <a> tags with Link component
website/components/RandomMemberList.tsx Replaces <a> tags with Link component, removes manual target and rel attributes
website/components/PropertyType.tsx Replaces <a> tag with Link component for internal navigation
website/components/PluginSupportStatusTable.tsx Simplifies link rendering by using Link component
website/components/DeprecationTable.tsx Replaces <a> tags with Link component for internal documentation links
website/components/CommunityCompatibleTable.tsx Simplifies external link rendering with Link component
website/components/ApiMeta.tsx Replaces <a> tags with Link component for version links

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

Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@SoonIter SoonIter merged commit aa88f43 into main Dec 18, 2025
35 checks passed
@SoonIter SoonIter deleted the syt/remove-unused-code branch December 18, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: document release: document related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants