Skip to content

Commit

Permalink
docs: update og images (#10206)
Browse files Browse the repository at this point in the history
* docs: update og images

* fixes
  • Loading branch information
shahednasser authored Nov 21, 2024
1 parent 19c6c4a commit ab5f2b5
Show file tree
Hide file tree
Showing 16 changed files with 129 additions and 4 deletions.
29 changes: 28 additions & 1 deletion www/apps/api-reference/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,37 @@ import Providers from "../providers"
import { BareboneLayout, WideLayout } from "docs-ui"
import { Inter, Roboto_Mono } from "next/font/google"
import clsx from "clsx"
import { Metadata } from "next"

export const metadata = {
const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"

export const metadata: Metadata = {
title: "Medusa API Reference",
description: "Check out Medusa's API reference",
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),
openGraph: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
twitter: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
}

const inter = Inter({
Expand Down
Binary file removed www/apps/api-reference/app/opengraph-image.jpg
Binary file not shown.
Binary file removed www/apps/api-reference/app/twitter-image.jpg
Binary file not shown.
23 changes: 23 additions & 0 deletions www/apps/book/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { BareboneLayout } from "docs-ui"
import { inter, robotoMono } from "./fonts"
import clsx from "clsx"

const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"

export const metadata: Metadata = {
title: {
template: `%s - ${config.titleSuffix}`,
Expand All @@ -14,6 +17,26 @@ export const metadata: Metadata = {
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),
openGraph: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
twitter: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
}

export default function RootLayout({
Expand Down
Binary file removed www/apps/book/app/opengraph-image.jpg
Binary file not shown.
Binary file removed www/apps/book/app/twitter-image.jpg
Binary file not shown.
12 changes: 9 additions & 3 deletions www/apps/resources/app/integrations/guides/sanity/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ export const metadata = {
images: [
{
url: ogImage,
width: 1600,
height: 900
width: 800,
height: 450,
type: "image/jpeg"
}
],
},
twitter: {
images: [
ogImage
{
url: ogImage,
width: 800,
height: 450,
type: "image/jpeg"
}
]
}
}
Expand Down
23 changes: 23 additions & 0 deletions www/apps/resources/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import clsx from "clsx"
import { Feedback } from "@/components/Feedback"
import EditButton from "@/components/EditButton"

const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"

export const metadata: Metadata = {
title: {
template: `%s - ${config.titleSuffix}`,
Expand All @@ -18,6 +21,26 @@ export const metadata: Metadata = {
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),
openGraph: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
twitter: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
}

export const inter = Inter({
Expand Down
Binary file removed www/apps/resources/app/opengraph-image.jpg
Binary file not shown.
Binary file removed www/apps/resources/app/twitter-image.jpg
Binary file not shown.
23 changes: 23 additions & 0 deletions www/apps/ui/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,35 @@ import { BareboneLayout, TightLayout } from "docs-ui"
import { Inter, Roboto_Mono } from "next/font/google"
import clsx from "clsx"

const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"

export const metadata: Metadata = {
title: siteConfig.name,
description: siteConfig.description,
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),
openGraph: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
twitter: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
}

const inter = Inter({
Expand Down
Binary file removed www/apps/ui/src/app/opengraph-image.jpg
Binary file not shown.
Binary file removed www/apps/ui/src/app/twitter-image.jpg
Binary file not shown.
23 changes: 23 additions & 0 deletions www/apps/user-guide/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import clsx from "clsx"
import Feedback from "../components/Feedback"
import EditButton from "../components/EditButton"

const ogImage =
"https://res.cloudinary.com/dza7lstvk/image/upload/v1732200992/Medusa%20Resources/opengraph-image_daq6nx.jpg"

export const metadata: Metadata = {
title: {
template: `%s - ${config.titleSuffix}`,
Expand All @@ -17,6 +20,26 @@ export const metadata: Metadata = {
metadataBase: new URL(
process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000"
),
openGraph: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
twitter: {
images: [
{
url: ogImage,
type: "image/jpeg",
height: "1260",
width: "2400",
},
],
},
}

export const inter = Inter({
Expand Down
Binary file removed www/apps/user-guide/app/opengraph-image.jpg
Binary file not shown.
Binary file removed www/apps/user-guide/app/twitter-image.jpg
Binary file not shown.

0 comments on commit ab5f2b5

Please sign in to comment.