Skip to content

Commit

Permalink
chore: Update logo file format to webp and add og image (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
7nohe authored Oct 14, 2024
1 parent 30c5982 commit 09c76d9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
14 changes: 14 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import starlight from "@astrojs/starlight";
// @ts-check
import { defineConfig } from "astro/config";

const site = "https://openapi-react-query-codegen.vercel.app";
const ogUrl = new URL("og.jpg", site).href;
const ogImageAlt = "OpenAPI React Query Codegen";

// https://astro.build/config
export default defineConfig({
integrations: [
Expand All @@ -10,6 +14,16 @@ export default defineConfig({
social: {
github: "https://github.com/7nohe/openapi-react-query-codegen",
},
head: [
{
tag: "meta",
attrs: { property: "og:image", content: ogUrl },
},
{
tag: "meta",
attrs: { property: "og:image:alt", content: ogImageAlt },
},
],
sidebar: [
{
label: "Guides",
Expand Down
21 changes: 8 additions & 13 deletions docs/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/src/assets/logo.png
Binary file not shown.
Binary file added docs/src/assets/logo.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ template: splash
hero:
tagline: Code generator for creating React Query (also known as TanStack Query) hooks based on your OpenAPI schema.
image:
file: ../../assets/logo.png
file: ../../assets/logo.webp
actions:
- text: Get Started
link: /guides/introduction/
Expand Down

0 comments on commit 09c76d9

Please sign in to comment.