-
-
Notifications
You must be signed in to change notification settings - Fork 199
docs: add pluginOg and og-image to rspress docsite #2835
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for rspress-v2 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 integrates the rspress-plugin-og package to enable dynamic Open Graph image generation for the Rspress documentation site. The plugin replaces the static OG image configuration previously used by rsbuild-plugin-open-graph.
Key Changes:
- Adds
rspress-plugin-ogdependency and configures it with the site domain - Removes static OG image URL from
pluginOpenGraphconfiguration (now handled dynamically bypluginOg) - Adds
titlefrontmatter to homepage markdown files for proper OG image generation - Disables SSG experimental worker mode due to function serialization incompatibility
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| website/rspress.config.ts | Imports and configures pluginOg, removes static OG image from pluginOpenGraph, and comments out SSG worker mode due to plugin incompatibility |
| website/package.json | Adds rspress-plugin-og as an npm alias dependency using @latest tag |
| website/docs/zh/index.md | Adds title: Rspress to frontmatter for OG image generation |
| website/docs/en/index.md | Adds title: Rspress to frontmatter and a heading after frontmatter |
| pnpm-lock.yaml | Lockfile updates for new rspress-plugin-og dependency and its transitive dependencies (sharp, ufo, etc.) |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
Summary
docs: add pluginOg and og-image to rspress docsite
Related Issue
#2835
Checklist