-
-
Notifications
You must be signed in to change notification settings - Fork 244
docs: add zephyr to docs page #6071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this 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 adds documentation for Zephyr Cloud deployment integration to the Rsbuild project, introducing Zephyr as a zero-config deployment platform option for Rsbuild applications.
- Adds comprehensive documentation for Zephyr Cloud deployment with setup instructions and configuration examples
- Includes a dedicated section in the main README promoting Zephyr Cloud integration
- Registers the new documentation in the deployment guide navigation
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
website/docs/en/guide/deployment/zephyr-cloud.mdx | New comprehensive documentation file covering Zephyr Cloud deployment setup, configuration examples, and integration details |
website/docs/en/guide/deployment/_meta.json | Registers the new Zephyr Cloud documentation in the deployment guide navigation |
README.md | Adds promotional section for Zephyr Cloud with logo reference and feature highlights |
5e232c9
to
e92f1fb
Compare
1. Install the Zephyr plugin for Rsbuild: | ||
|
||
```bash | ||
npm install zephyr-rsbuild-plugin --save-dev | ||
``` | ||
|
||
2. Add the plugin to your Rsbuild configuration: | ||
|
||
```ts title="rsbuild.config.ts" | ||
import { defineConfig } from '@rsbuild/core'; | ||
import { pluginReact } from '@rsbuild/plugin-react'; | ||
import { withZephyr } from 'zephyr-rsbuild-plugin'; | ||
|
||
export default defineConfig({ | ||
plugins: [pluginReact(), withZephyr()], | ||
}); | ||
``` | ||
|
||
or with Module Federation | ||
|
||
```ts title="rsbuild.config.ts" | ||
import { defineConfig } from '@rsbuild/core'; | ||
import { pluginReact } from '@rsbuild/plugin-react'; | ||
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin'; | ||
import { withZephyr } from 'zephyr-rsbuild-plugin'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
pluginReact(), | ||
pluginModuleFederation({ | ||
name: 'my-app', | ||
remotes: { | ||
'shared-ui': 'shared_ui@http://localhost:3001/remoteEntry.js', | ||
}, | ||
shared: { | ||
react: { singleton: true }, | ||
'react-dom': { singleton: true }, | ||
}, | ||
}), | ||
withZephyr(), // Add after Module Federation | ||
], | ||
}); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we link this part to the README of zephyr-rsbuild-plugin
? This allows users to see up-to-date documentation
@Nsttt Could you update this PR to align with web-infra-dev/rspress#2555? Thank you! |
Added @chenjiahan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Summary
This PR adds Zephyr to the docs page.
Related Links
Checklist