Skip to content

Conversation

@SoonIter
Copy link
Member

@SoonIter SoonIter commented Dec 3, 2025

Summary

docs: add pluginOg and og-image to rspress docsite

Related Issue

#2835

Checklist

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

Copilot AI review requested due to automatic review settings December 3, 2025 07:14
@netlify
Copy link

netlify bot commented Dec 3, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 30ccfd6
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/692fe59d5fce56000864a595
😎 Deploy Preview https://deploy-preview-2835--rspress-v2.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 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-og dependency and configures it with the site domain
  • Removes static OG image URL from pluginOpenGraph configuration (now handled dynamically by pluginOg)
  • Adds title frontmatter 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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Rsdoctor Bundle Diff Analysis

📁 web

Path: website/doc_build/web/rsdoctor-data.json

📌 Baseline Commit: 197d9e06a8 | PR: #2834

Metric Current Baseline Change
📊 Total Size 14.5 MB 14.5 MB 90.0 B (0.0%)
📄 JavaScript 13.9 MB 13.9 MB 90.0 B (0.0%)
🎨 CSS 113.8 KB 113.8 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 499.9 KB 499.9 KB 0 B (0.0%)

📦 Download Diff Report: web Bundle Diff

Generated by Rsdoctor GitHub Action

@SoonIter SoonIter marked this pull request as draft December 3, 2025 07: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.

1 participant