Skip to content

chore: migrate Rspress to Rstack CLI#8167

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-rspress-rstack-cli
Jul 22, 2026
Merged

chore: migrate Rspress to Rstack CLI#8167
chenjiahan merged 1 commit into
mainfrom
chenjiahan/chore-rspress-rstack-cli

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR migrates the Rsbuild website from standalone Rspress commands and configuration to Rstack CLI, keeping the existing documentation behavior while using the unified rs doc workflow. It also routes website Rsbuild types through Rstack and removes the direct @rsbuild/core dependency.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

The website documentation tooling was migrated from Rspress to RStack. Scripts now use rs doc, configuration uses define.doc, and rstack was added as a development dependency. TypeScript settings now include the RStack configuration and allow TypeScript extensions without emitting files. Theme ambient and plugin type references were updated to RStack packages.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: migrating Rspress to the Rstack CLI.
Description check ✅ Passed The description accurately summarizes the migration to Rstack CLI and related type/dependency updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81cb622
Status: ✅  Deploy successful!
Preview URL: https://7ff42a24.rsbuild-v2.pages.dev
Branch Preview URL: https://chenjiahan-chore-rspress-rst.rsbuild-v2.pages.dev

View logs

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@website/rstack.config.ts`:
- Line 20: Update the documentation configuration around define.doc in the
RStack config to export its returned configuration as the module default.
Preserve the existing configuration object and verify the resulting export
matches the installed RStack API.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d7b49534-22f6-42d4-b741-5ca0afa9cfcc

📥 Commits

Reviewing files that changed from the base of the PR and between 3e62fc9 and 81cb622.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • website/package.json
  • website/rstack.config.ts
  • website/theme/env.d.ts
  • website/theme/rsbuildPluginOverview.ts
  • website/tsconfig.json

Comment thread website/rstack.config.ts
@chenjiahan
chenjiahan merged commit bb8ecd1 into main Jul 22, 2026
8 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/chore-rspress-rstack-cli branch July 22, 2026 12:25
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.

1 participant