Skip to content

Commit 09c76d9

Browse files
authored
chore: Update logo file format to webp and add og image (#164)
1 parent 30c5982 commit 09c76d9

File tree

6 files changed

+23
-14
lines changed

6 files changed

+23
-14
lines changed

docs/astro.config.mjs

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import starlight from "@astrojs/starlight";
22
// @ts-check
33
import { defineConfig } from "astro/config";
44

5+
const site = "https://openapi-react-query-codegen.vercel.app";
6+
const ogUrl = new URL("og.jpg", site).href;
7+
const ogImageAlt = "OpenAPI React Query Codegen";
8+
59
// https://astro.build/config
610
export default defineConfig({
711
integrations: [
@@ -10,6 +14,16 @@ export default defineConfig({
1014
social: {
1115
github: "https://github.com/7nohe/openapi-react-query-codegen",
1216
},
17+
head: [
18+
{
19+
tag: "meta",
20+
attrs: { property: "og:image", content: ogUrl },
21+
},
22+
{
23+
tag: "meta",
24+
attrs: { property: "og:image:alt", content: ogImageAlt },
25+
},
26+
],
1327
sidebar: [
1428
{
1529
label: "Guides",

docs/public/favicon.svg

+8-13
Loading

docs/public/og.jpg

402 KB
Loading

docs/src/assets/logo.png

-32.8 KB
Binary file not shown.

docs/src/assets/logo.webp

13 KB
Binary file not shown.

docs/src/content/docs/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ template: splash
55
hero:
66
tagline: Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.
77
image:
8-
file: ../../assets/logo.png
8+
file: ../../assets/logo.webp
99
actions:
1010
- text: Get Started
1111
link: /guides/introduction/

0 commit comments

Comments
 (0)