Skip to content

Conversation

@SoonIter
Copy link
Member

@SoonIter SoonIter commented Sep 2, 2025

Summary

enable pluginTwoslash

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings September 2, 2025 09:39
@SoonIter SoonIter changed the title docs: upgrade @rspress/[email protected] docs: upgrade @rspress/[email protected] and enable pluginTwoslash Sep 2, 2025
@netlify
Copy link

netlify bot commented Sep 2, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 9957b4d
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/68b6c5888a80e50007a5b066
😎 Deploy Preview https://deploy-preview-1202--rslib.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.

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 upgrades the RSPress documentation framework from version 2.0.0-beta.28 to 2.0.0-beta.30, adding TypeScript code hover support through the Twoslash plugin.

  • Upgraded all @RsPress packages to version 2.0.0-beta.30
  • Added Twoslash plugin for enhanced TypeScript code examples with hover information
  • Updated code blocks in documentation to use Twoslash functionality

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/rspress.config.ts Added Twoslash plugin import and configuration, removed deprecated options
website/package.json Updated RSPress package versions and added new dependencies
website/docs/zh/guide/solution/react.mdx Added twoslash directive to TypeScript code blocks
website/docs/zh/guide/advanced/module-federation.mdx Added twoslash directive to TypeScript code block
website/docs/en/guide/solution/react.mdx Added twoslash directive to TypeScript code blocks
website/docs/en/guide/advanced/module-federation.mdx Added twoslash directive to TypeScript code block
scripts/dictionary.txt Added "Twoslash" to spelling dictionary
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Timeless0911 Timeless0911 changed the title docs: upgrade @rspress/[email protected] and enable pluginTwoslash docs: enable pluginTwoslash Sep 2, 2025
@Timeless0911 Timeless0911 force-pushed the syt/bump-rspress-beta-30 branch from 989c562 to 819abcf Compare September 2, 2025 10:17
@Timeless0911 Timeless0911 enabled auto-merge (squash) September 2, 2025 10:24
@Timeless0911 Timeless0911 merged commit 0c62439 into main Sep 2, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the syt/bump-rspress-beta-30 branch September 2, 2025 10:30
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.

3 participants