Skip to content

docs: potential fix og image - #768

Merged
exploIF merged 1 commit into
mainfrom
@exploif/fix-og-image
Aug 13, 2026
Merged

exploIF merged 1 commit into
mainfrom
@exploif/fix-og-image

Conversation

@exploIF

@exploIF exploIF commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Potential fix for missing docs og image

Copilot AI lite review requested due to automatic review settings August 13, 2026 10:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the Docusaurus docs site to avoid generating per-page og:image URLs that don’t exist, restoring the default fallback to the site-wide themeConfig.image.

Changes:

  • Add a theme override for DocItem/Metadata to control PageMetadata image selection.
  • Add @docusaurus/plugin-content-docs as a direct dependency (and update yarn.lock) to support the new useDoc import.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
docs/package.json Adds @docusaurus/plugin-content-docs dependency used by the new theme override.
docs/yarn.lock Locks the newly added @docusaurus/plugin-content-docs dependency for the docs workspace.
docs/src/theme/DocItem/Metadata/index.js Overrides doc page metadata to prevent broken per-page og:image behavior and allow fallback to themeConfig.image.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@exploIF
exploIF merged commit 98ee365 into main Aug 13, 2026
10 checks passed
@exploIF
exploIF deleted the @exploif/fix-og-image branch August 13, 2026 11:01
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