docs(fumadocs): document build-time site OG image generation#157
docs(fumadocs): document build-time site OG image generation#157tembo[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Requesting review from @leoisadev1 who has experience with the following files modified in this PR:
|
greptile's review on pr #157 came back a clean 5/5 — "safe to merge with minimal risk," no files flagged, and no change requests. i also checked for inline review threads and there are none. so there's nothing actionable to implement here. the feedback actually validated the docs: greptile's t-rex ran the pr is a docs-only change to |
Summary
Following PR #155, which moved the site-wide social card (
public/og/email-sdk.png) to a fully code-drawn composition, theapps/fumadocsREADME documented the runtime blog OG images (/og/blog/*) but had no coverage of the new build-time site OG image subsystem. This PR closes that gap.Adds a Site OG image section to
apps/fumadocs/README.mdcovering the generator introduced/reworked in #155:og:image/twitter:imagefor every page (siteOgImageUrlinsrc/lib/shared.ts, wired insrc/lib/metadata.ts) and the blog-route fallback (src/routes/blog/$slug.tsx), explicitly distinguished from the runtime/og/blog/*images.packages/email-sdk/package.jsonexports, and the sponsor row fromsrc/lib/sponsors.ts(shared with theSponsorSpotlightcomponent).bun run og:generate, its place in thebuildscript, committing the PNG, and theVITE_OG_IMAGE_VERSIONcache-buster.loadSystemFonts: false.Codepaths covered
apps/fumadocs/scripts/og/generate-og-image.ts(generator, overflow guards, deterministic font setup)apps/fumadocs/src/lib/sponsors.ts(sponsor source of truth) andsrc/components/sponsors.tsx(shared consumer)apps/fumadocs/src/lib/shared.ts+src/lib/metadata.ts(where the card is used as OG/Twitter image)apps/fumadocs/src/routes/blog/$slug.tsx(fallback image)packages/email-sdk/package.jsonexports(adapter-count derivation)apps/fumadocs/package.jsonbuild/og:generatescriptsKey knowledge gaps addressed
Verification
bun run og:generate— regenerates the PNG successfully (23 adapters, 6 sponsors); the regenerated asset was reverted so this stays a docs-only change.src/routes/blog/$slug.tsx(fallback when no post is resolved, not "posts without an image").