Skip to content

chore(website): upgrade Rspress to v2.0.8#609

Merged
chenjiahan merged 1 commit intomainfrom
chenjiahan/chore-upgrade-rspress-website
Apr 7, 2026
Merged

chore(website): upgrade Rspress to v2.0.8#609
chenjiahan merged 1 commit intomainfrom
chenjiahan/chore-upgrade-rspress-website

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

  • Upgrade the website from @rspress/core 2.0.0-rc.0 to ^2.0.8 and replace the old sitemap/llms plugin setup with the supported @rspress/plugin-sitemap configuration.
  • Align the website config with the new Rspress runtime by switching the PostCSS config to ESM, removing the obsolete Tailwind config and baseUrl, and importing the custom theme from @rspress/core/theme-original.
  • Validated with pnpm --filter @rslint/website build.

Related Links

Checklist

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

@chenjiahan chenjiahan marked this pull request as ready for review April 7, 2026 08:49
Copilot AI review requested due to automatic review settings April 7, 2026 08:50
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 updates the Rslint website to Rspress v2, involving significant dependency upgrades and configuration adjustments. Key changes include setting the package type to module, updating theme imports to use the original layout, and migrating to the official sitemap plugin. Feedback suggests including siteUrl in the top-level configuration for better integration with internal features and replacing __dirname with relative paths to ensure compatibility with ES modules.

Comment thread website/rspress.config.ts
Comment thread website/rspress.config.ts
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

Upgrades the website’s Rspress setup to v2.0.8 and updates configuration to match the newer plugin/theme/runtime expectations.

Changes:

  • Bump @rspress/core to ^2.0.8 and migrate sitemap to @rspress/plugin-sitemap.
  • Switch website runtime/theme wiring to @rspress/core/theme-original and simplify related config.
  • Move Tailwind integration to PostCSS ESM config and remove the old Tailwind config file.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
website/tsconfig.json Removes baseUrl while keeping paths aliases.
website/theme/index.tsx Switches base theme imports/exports to theme-original.
website/tailwind.config.js Removes the previous Tailwind config file.
website/rspress.config.ts Updates sitemap plugin usage and aligns Rspress config with v2 runtime.
website/postcss.config.js Adds ESM PostCSS config for Tailwind’s PostCSS plugin.
website/package.json Sets ESM package mode and upgrades Rspress deps / plugin list.
pnpm-lock.yaml Locks upgraded Rspress/Rsbuild dependency graph.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

website/tsconfig.json:18

  • compilerOptions.paths remains configured, but baseUrl was removed. TypeScript resolves paths mappings relative to baseUrl and can ignore/disable them if baseUrl isn’t set, which would break aliases like @components/* and @/* in TS/IDE typechecking. If these aliases are still intended, re-add "baseUrl": "." (or use an alternative alias mechanism that TypeScript understands).
    "paths": {
      "@theme": ["./theme"],
      "@components/*": ["./theme/components/*"],
      "@zh/*": ["./docs/zh/*"],

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

Comment thread website/rspress.config.ts
Comment thread pnpm-lock.yaml
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying rslint with  Cloudflare Pages  Cloudflare Pages

Latest commit: deef41b
Status: ✅  Deploy successful!
Preview URL: https://e4ee8dcd.rslint.pages.dev
Branch Preview URL: https://chenjiahan-chore-upgrade-rsp.rslint.pages.dev

View logs

@chenjiahan chenjiahan requested a review from fansenze April 7, 2026 09:03
@chenjiahan chenjiahan enabled auto-merge (squash) April 7, 2026 09:03
@chenjiahan chenjiahan merged commit 8dd061b into main Apr 7, 2026
15 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/chore-upgrade-rspress-website branch April 7, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants